Class: Kumo::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/kumo/config.rb

Overview

Configuration for EC2

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_file_path, options = {}, sets = []) ⇒ Config

New configuration

config_file_path

configuration file path (YAML)

options

instance options

sets

configuration sets (applied in order)



13
14
15
16
17
18
# File 'lib/kumo/config.rb', line 13

def initialize(config_file_path, options = {}, sets = [])
  set_default_config
  merge_config_file(config_file_path, sets)
  merge_extra_config(options)
  validate_config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/kumo/config.rb', line 6

def config
  @config
end