Sha256: 977872943d18298d6a5fffd323f123a0d27fd689aec4279cc88cf34abf7bb817
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 Bytes
Contents
module Heirloom class Config attr_accessor :access_key, :secret_key def initialize load_config_file end def load_config_file config_file = "#{ENV['HOME']}/.heirloom.yml" c = YAML::load( File.open( config_file ) ) self.access_key = c['access_key'] self.secret_key = c['secret_key'] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.0.7 | lib/heirloom/config.rb |
heirloom-0.0.6 | lib/heirloom/config.rb |