Class: JamesBond::Core::Config
- Inherits:
-
Object
- Object
- JamesBond::Core::Config
- Defined in:
- lib/james_bond/core/config.rb
Constant Summary collapse
- ENV_PLACEHOLDER =
":env".freeze
- RESERVED_COMMANDS =
["env", "run", "server", "test", "deploy", "console"].freeze
Instance Attribute Summary collapse
-
#missions ⇒ Object
Returns the value of attribute missions.
-
#raw_hash ⇒ Object
Returns the value of attribute raw_hash.
-
#yaml_path ⇒ Object
Returns the value of attribute yaml_path.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(params = {}) ⇒ Config
Returns a new instance of Config.
13 14 15 16 17 |
# File 'lib/james_bond/core/config.rb', line 13 def initialize(params={}) @yaml_path = params[:yaml_path] extract_config_from_yaml(@yaml_path) end |
Instance Attribute Details
#missions ⇒ Object
Returns the value of attribute missions.
9 10 11 |
# File 'lib/james_bond/core/config.rb', line 9 def missions @missions end |
#raw_hash ⇒ Object
Returns the value of attribute raw_hash.
9 10 11 |
# File 'lib/james_bond/core/config.rb', line 9 def raw_hash @raw_hash end |
#yaml_path ⇒ Object
Returns the value of attribute yaml_path.
9 10 11 |
# File 'lib/james_bond/core/config.rb', line 9 def yaml_path @yaml_path end |