Method: GithubBackup::JSONStore#save

Defined in:
lib/github_backup/json_store.rb

#saveObject



33
34
35
36
37
38
39
40
# File 'lib/github_backup/json_store.rb', line 33

def save
  return false unless @data
  @data['_saved_at'] = Time.now
  File.open(@path, 'w') do |file|
    file.write(to_s)
  end
  true
end