module Docker::Stack::Localstack::EndpointStub
Public Class Methods
stub_endpoints!()
click to toggle source
# 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.options.find { |opt| opt.name == :force_path_style }.default = true end