Sha256: 4cc99532f877ce185497ac1fca9601f3d8c126954fd199971157a0b41b74c7bd
Contents?: true
Size: 258 Bytes
Versions: 3
Compression:
Stored size: 258 Bytes
Contents
class Freighthop::Config def self.exist? file.exist? end def self.file Freighthop.host_root.join('.freighthop.json') end def self.config @config = JSON.parse(file.read) end def self.fetch(*args) config.fetch(*args) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
freighthop-0.2.1 | lib/freighthop/config.rb |
freighthop-0.2.0 | lib/freighthop/config.rb |
freighthop-0.1.0 | lib/freighthop/config.rb |