Sha256: d0a9b2de2cfa5852040d1277d167c5fed13a53adb7321e0f84c6195dc2acd69a
Contents?: true
Size: 388 Bytes
Versions: 4
Compression:
Stored size: 388 Bytes
Contents
require "yaml" require "active_support" require "active_support/core_ext/hash" module Jets::Git class Saved extend Memoist # gitinfo.yml contains original git info from the project def params return {} unless File.exist?(".jets/gitinfo.yml") data = YAML.load_file(".jets/gitinfo.yml") ActiveSupport::HashWithIndifferentAccess.new(data) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jets-6.0.5 | lib/jets/git/saved.rb |
jets-6.0.4 | lib/jets/git/saved.rb |
jets-6.0.3 | lib/jets/git/saved.rb |
jets-6.0.2 | lib/jets/git/saved.rb |