module Cookbooks::SaveFile

Public Class Methods

append_what_into(what, into) click to toggle source
#

::append_what_into

#
# File lib/cookbooks/misc/save_file.rb, line 27
def self.append_what_into(what, into)
  File.open(into, 'a') { |file| file.write(what) }
end
write_what_into(what, into) click to toggle source
#

::write_what_into

#
# File lib/cookbooks/misc/save_file.rb, line 20
def self.write_what_into(what, into)
  File.open(into, 'w') { |file| file.write(what) }
end