Class: EnvConfiguration::Configuration
- Inherits:
-
Object
- Object
- EnvConfiguration::Configuration
- Defined in:
- lib/env_configuration/configuration.rb
Instance Attribute Summary collapse
-
#aws_ssm_parameter_store ⇒ Object
Returns the value of attribute aws_ssm_parameter_store.
-
#dot_env ⇒ Object
Returns the value of attribute dot_env.
-
#yaml ⇒ Object
Returns the value of attribute yaml.
Instance Method Summary collapse
-
#aws_access_key_id ⇒ Object
—— :aws_ssm_paramer_store ——— :access_key_id, :secret_access_key, :region, :path.
- #aws_path ⇒ Object
- #aws_region ⇒ Object
- #aws_secret_access_key ⇒ Object
-
#dot_env_file ⇒ Object
—— :dot_env ——— :dot_env_file.
-
#yaml_file ⇒ Object
—— :yaml ——— :yaml_file, :section.
- #yaml_section ⇒ Object
Instance Attribute Details
#aws_ssm_parameter_store ⇒ Object
Returns the value of attribute aws_ssm_parameter_store.
4 5 6 |
# File 'lib/env_configuration/configuration.rb', line 4 def aws_ssm_parameter_store @aws_ssm_parameter_store end |
#dot_env ⇒ Object
Returns the value of attribute dot_env.
4 5 6 |
# File 'lib/env_configuration/configuration.rb', line 4 def dot_env @dot_env end |
#yaml ⇒ Object
Returns the value of attribute yaml.
4 5 6 |
# File 'lib/env_configuration/configuration.rb', line 4 def yaml @yaml end |
Instance Method Details
#aws_access_key_id ⇒ Object
—— :aws_ssm_paramer_store ——— :access_key_id, :secret_access_key, :region, :path
25 26 27 |
# File 'lib/env_configuration/configuration.rb', line 25 def aws_access_key_id aws_ssm_parameter_store && aws_ssm_parameter_store[:access_key_id] end |
#aws_path ⇒ Object
37 38 39 |
# File 'lib/env_configuration/configuration.rb', line 37 def aws_path aws_ssm_parameter_store && aws_ssm_parameter_store[:path] end |
#aws_region ⇒ Object
33 34 35 |
# File 'lib/env_configuration/configuration.rb', line 33 def aws_region aws_ssm_parameter_store && aws_ssm_parameter_store[:region] end |
#aws_secret_access_key ⇒ Object
29 30 31 |
# File 'lib/env_configuration/configuration.rb', line 29 def aws_secret_access_key aws_ssm_parameter_store && aws_ssm_parameter_store[:secret_access_key] end |
#dot_env_file ⇒ Object
—— :dot_env ——— :dot_env_file
9 10 11 |
# File 'lib/env_configuration/configuration.rb', line 9 def dot_env_file dot_env && dot_env[:dot_env_file] end |
#yaml_file ⇒ Object
—— :yaml ——— :yaml_file, :section
15 16 17 |
# File 'lib/env_configuration/configuration.rb', line 15 def yaml_file yaml && yaml[:yaml_file] end |
#yaml_section ⇒ Object
19 20 21 |
# File 'lib/env_configuration/configuration.rb', line 19 def yaml_section yaml && yaml[:section] end |