Sha256: b91ecd56e0c0f98b8ca275211377ae496baf99e4c0accf35c3ed7009f15d2959
Contents?: true
Size: 449 Bytes
Versions: 7
Compression:
Stored size: 449 Bytes
Contents
module Stackster class Config def initialize(args = {}) @config = args[:config] end def load_config_file config_file = "#{ENV['HOME']}/.stackster.yml" @config ? @config : (YAML::load File.open( config_file )) end def access_key load_config_file['access_key'] end def secret_key load_config_file['secret_key'] end def region load_config_file['region'] end end end
Version data entries
7 entries across 7 versions & 1 rubygems