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 18 19 20 |
# File 'lib/exercism_config/generate_aws_settings.rb', line 15 def aws_access_key_id case Exercism.environment when :development, :test 'FAKE' end end |
#aws_secret_access_key ⇒ Object
23 24 25 26 27 28 |
# File 'lib/exercism_config/generate_aws_settings.rb', line 23 def aws_secret_access_key case Exercism.environment when :development, :test 'FAKE' end 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', profile: profile, access_key_id: aws_access_key_id, secret_access_key: aws_secret_access_key }.select { |_k, v| v } end |
#profile ⇒ Object
31 32 33 34 35 36 |
# File 'lib/exercism_config/generate_aws_settings.rb', line 31 def profile case Exercism.environment when :production 'exercism_staging' end end |