Method: GithubBackup::JSONStore#load!

Defined in:
lib/github_backup/json_store.rb

#load!Object



15
16
17
18
19
# File 'lib/github_backup/json_store.rb', line 15

def load!
  @data = exists? ? JSON.parse(File.read(@path)) : {}
  @data['_read_at'] = Time.now
  @data
end