Module: Docker::Stack::Localstack::EndpointStub
- Defined in:
- lib/docker/stack/localstack/endpoint_stub.rb
Defined Under Namespace
Classes: Plugin
Class Method Summary collapse
Class Method Details
.stub_endpoints! ⇒ Object
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/docker/stack/localstack/endpoint_stub.rb', line 47 def self.stub_endpoints! Aws.config.update( region: 'us-east-1', credentials: Aws::Credentials.new('localstack-key', 'localstack-secret') ) Seahorse::Client::Base.add_plugin(Plugin) unless Seahorse::Client::Base.plugins.include?(Plugin) return unless defined?(Aws::S3) Aws::S3::Plugins::BucketDns..find { |opt| opt.name == :force_path_style }.default = true end |