Method: Sake::Store#save!

Defined in:
lib/sake.rb

#save!Object

Wrote our current tasks_file to disk, overwriting the current Store.



521
522
523
524
525
526
# File 'lib/sake.rb', line 521

def save!
  tasks_file # ensure the tasks_file is loaded before overwriting
  File.open(path, 'w') do |file|
    file.puts tasks_file.to_ruby
  end
end