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
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/docker/stack/localstack/endpoint_stub.rb', line 48 def self.stub_endpoints! Aws.config.update( region: 'us-east-1', credentials: Aws::Credentials.new('localstack-key', 'localstack-secret') ) classes_to_stub = [Seahorse::Client::Base] + Seahorse::Client::Base.descendants classes_to_stub.each do |klass| klass.add_plugin(Plugin) unless klass.plugins.include?(Plugin) end return unless defined?(Aws::S3) Aws::S3::Plugins::BucketDns..find { |opt| opt.name == :force_path_style }.default = true end |