Class: ExercismConfig::SetupS3Client
- Inherits:
-
Object
- Object
- ExercismConfig::SetupS3Client
- Includes:
- Mandate
- Defined in:
- lib/exercism_config/setup_s3_client.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/exercism_config/setup_s3_client.rb', line 5 def call require 'aws-sdk-s3' aws_settings = GenerateAwsSettings.().merge( endpoint: config_endpoint, force_path_style: true, # We don't want a profile for this AWS service # as we run it locally. But we do normally, so # we locally override this here. profile: nil ).select { |_k, v| v } Aws::S3::Client.new(aws_settings) end |