Class: ExercismConfig::GenerateAwsSettings
- Inherits:
-
Object
- Object
- ExercismConfig::GenerateAwsSettings
- Includes:
- Mandate
- Defined in:
- lib/exercism_config/generate_aws_settings.rb
Instance Method Summary collapse
Instance Method Details
#aws_access_key_id ⇒ Object
15 16 17 |
# File 'lib/exercism_config/generate_aws_settings.rb', line 15 def aws_access_key_id Exercism.env.production? ? nil : 'FAKE' end |
#aws_secret_access_key ⇒ Object
20 21 22 |
# File 'lib/exercism_config/generate_aws_settings.rb', line 20 def aws_secret_access_key Exercism.env.production? ? nil : 'FAKE' end |
#call ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/exercism_config/generate_aws_settings.rb', line 5 def call { region: 'eu-west-2', endpoint:, access_key_id: aws_access_key_id, secret_access_key: aws_secret_access_key }.select { |_k, v| v } end |