Class: JamesBond::Core::Config

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#missionsObject

Returns the value of attribute missions.



9
10
11
# File 'lib/james_bond/core/config.rb', line 9

def missions
  @missions
end

#raw_hashObject

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_pathObject

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