Class: Lyra::Config
Instance Attribute Summary collapse
-
#access_key_id ⇒ Object
readonly
Returns the value of attribute access_key_id.
-
#aws_region ⇒ Object
readonly
Returns the value of attribute aws_region.
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#secret_access_key ⇒ Object
readonly
Returns the value of attribute secret_access_key.
-
#secrets ⇒ Object
readonly
Returns the value of attribute secrets.
-
#template_path ⇒ Object
readonly
Returns the value of attribute template_path.
Instance Method Summary collapse
-
#initialize(path: 'Lyrafile') ⇒ Config
constructor
A new instance of Config.
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_id ⇒ Object (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_region ⇒ Object (readonly)
Returns the value of attribute aws_region.
8 9 10 |
# File 'lib/lyra/config.rb', line 8 def aws_region @aws_region end |
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
9 10 11 |
# File 'lib/lyra/config.rb', line 9 def environment @environment end |
#output_path ⇒ Object (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_key ⇒ Object (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 |
#secrets ⇒ Object (readonly)
Returns the value of attribute secrets.
11 12 13 |
# File 'lib/lyra/config.rb', line 11 def secrets @secrets end |
#template_path ⇒ Object (readonly)
Returns the value of attribute template_path.
12 13 14 |
# File 'lib/lyra/config.rb', line 12 def template_path @template_path end |