Class: JamesBond::MissionBuild::Config
- Inherits:
-
Object
- Object
- JamesBond::MissionBuild::Config
- Defined in:
- lib/james_bond/mission_build/config.rb,
lib/james_bond/mission_build/config/invalid_file_error.rb,
lib/james_bond/mission_build/config/no_config_available_error.rb
Defined Under Namespace
Classes: InvalidFileError, NoConfigAvailableError
Instance Attribute Summary collapse
-
#docker_config ⇒ Object
Returns the value of attribute docker_config.
-
#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(yaml_path:) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(yaml_path:) ⇒ Config
Returns a new instance of Config.
12 13 14 15 16 17 18 |
# File 'lib/james_bond/mission_build/config.rb', line 12 def initialize(yaml_path:) @yaml_path = yaml_path extract_config_from_yaml(@yaml_path) validate_config @docker_config = @raw_hash["build"]["docker"] end |
Instance Attribute Details
#docker_config ⇒ Object
Returns the value of attribute docker_config.
8 9 10 |
# File 'lib/james_bond/mission_build/config.rb', line 8 def docker_config @docker_config end |
#raw_hash ⇒ Object
Returns the value of attribute raw_hash.
8 9 10 |
# File 'lib/james_bond/mission_build/config.rb', line 8 def raw_hash @raw_hash end |
#yaml_path ⇒ Object
Returns the value of attribute yaml_path.
8 9 10 |
# File 'lib/james_bond/mission_build/config.rb', line 8 def yaml_path @yaml_path end |