Class: Stackster::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/stackster/config.rb

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ Config

Returns a new instance of Config.



6
7
8
9
# File 'lib/stackster/config.rb', line 6

def initialize(args = {})
  @config = load_config_file args[:config]
  @logger = args[:logger] ||= StacksterLogger.new
end

Instance Method Details

#access_keyObject



11
12
13
# File 'lib/stackster/config.rb', line 11

def access_key
  @config['access_key']
end

#loggerObject



23
24
25
# File 'lib/stackster/config.rb', line 23

def logger
  @logger
end

#regionObject



19
20
21
# File 'lib/stackster/config.rb', line 19

def region
  @config['region']
end

#secret_keyObject



15
16
17
# File 'lib/stackster/config.rb', line 15

def secret_key
  @config['secret_key']
end