method
invoke!
ruby latest stable - Class:
Bundler::Thor::Actions::CreateFile
invoke!()public
No documentation available.
# File lib/bundler/vendor/thor/lib/thor/actions/create_file.rb, line 59
def invoke!
invoke_with_conflict_check do
require "fileutils"
FileUtils.mkdir_p(File.dirname(destination))
File.open(destination, "wb") { |f| f.write render }
end
given_destination
end