Class: Lyra::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path: 'Lyrafile') ⇒ Config

Returns a new instance of Config.



14
15
16
17
18
19
20
21
22
23
# File 'lib/lyra/config.rb', line 14

def initialize(path: 'Lyrafile')
  config = YAML::load_file(path).transform_keys(&:to_sym)
  @access_key_id = config[:access_key_id]
  @secret_access_key = config[:secret_access_key]
  @aws_region = config[:aws_region]
  @environment = config[:environment]
  @output_path = config[:output_path]
  @secrets = config[:secrets]
  @template_path = config[:template_path]
end

Instance Attribute Details

#access_key_idObject (readonly)

Returns the value of attribute access_key_id.



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

def access_key_id
  @access_key_id
end

#aws_regionObject (readonly)

Returns the value of attribute aws_region.



8
9
10
# File 'lib/lyra/config.rb', line 8

def aws_region
  @aws_region
end

#environmentObject (readonly)

Returns the value of attribute environment.



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

def environment
  @environment
end

#output_pathObject (readonly)

Returns the value of attribute output_path.



10
11
12
# File 'lib/lyra/config.rb', line 10

def output_path
  @output_path
end

#secret_access_keyObject (readonly)

Returns the value of attribute secret_access_key.



7
8
9
# File 'lib/lyra/config.rb', line 7

def secret_access_key
  @secret_access_key
end

#secretsObject (readonly)

Returns the value of attribute secrets.



11
12
13
# File 'lib/lyra/config.rb', line 11

def secrets
  @secrets
end

#template_pathObject (readonly)

Returns the value of attribute template_path.



12
13
14
# File 'lib/lyra/config.rb', line 12

def template_path
  @template_path
end