Class: Jets::Git::Saved

Inherits:
Object
  • Object
show all
Extended by:
Memoist
Defined in:
lib/jets/git/saved.rb

Instance Method Summary collapse

Instance Method Details

#paramsObject

gitinfo.yml contains original git info from the project



10
11
12
13
14
# File 'lib/jets/git/saved.rb', line 10

def params
  return {} unless File.exist?(".jets/gitinfo.yml")
  data = YAML.load_file(".jets/gitinfo.yml")
  ActiveSupport::HashWithIndifferentAccess.new(data)
end