Method: Ing::Files::CreateFile#invoke!

Defined in:
lib/ing/actions/create_file.rb

#invoke!Object



60
61
62
63
64
65
66
# File 'lib/ing/actions/create_file.rb', line 60

def invoke!
  invoke_with_conflict_check do
    FileUtils.mkdir_p(File.dirname(destination))
    File.open(destination, 'wb') { |f| f.write render }
  end
  given_destination
end