Class: Stackster::Config
- Inherits:
-
Object
- Object
- Stackster::Config
- Defined in:
- lib/stackster/config.rb
Instance Method Summary collapse
- #access_key ⇒ Object
-
#initialize(args = {}) ⇒ Config
constructor
A new instance of Config.
- #logger ⇒ Object
- #region ⇒ Object
- #secret_key ⇒ Object
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_key ⇒ Object
11 12 13 |
# File 'lib/stackster/config.rb', line 11 def access_key @config['access_key'] end |
#logger ⇒ Object
23 24 25 |
# File 'lib/stackster/config.rb', line 23 def logger @logger end |
#region ⇒ Object
19 20 21 |
# File 'lib/stackster/config.rb', line 19 def region @config['region'] end |
#secret_key ⇒ Object
15 16 17 |
# File 'lib/stackster/config.rb', line 15 def secret_key @config['secret_key'] end |