Class: Testcloud::Config::Manager
- Inherits:
-
Object
- Object
- Testcloud::Config::Manager
- Defined in:
- lib/testcloud/config/manager.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#loader ⇒ Object
readonly
Returns the value of attribute loader.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Manager
constructor
A new instance of Manager.
- #load! ⇒ Object (also: #reload!)
- #setup(options = {}) {|@settings| ... } ⇒ Object
Constructor Details
#initialize(options = {}, &block) ⇒ Manager
Returns a new instance of Manager.
8 9 10 |
# File 'lib/testcloud/config/manager.rb', line 8 def initialize( = {}, &block) setup(, &block) end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
6 7 8 |
# File 'lib/testcloud/config/manager.rb', line 6 def configuration @configuration end |
#loader ⇒ Object (readonly)
Returns the value of attribute loader.
6 7 8 |
# File 'lib/testcloud/config/manager.rb', line 6 def loader @loader end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
6 7 8 |
# File 'lib/testcloud/config/manager.rb', line 6 def settings @settings end |
Instance Method Details
#load! ⇒ Object Also known as: reload!
12 13 14 15 16 |
# File 'lib/testcloud/config/manager.rb', line 12 def load! @configuration = nil @configuration = loader.load_configuration set_config_constant!(@configuration) if settings.config_classname? end |