Skip to content

Commit

Permalink
Remove TestPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Jun 20, 2024
1 parent de88ef5 commit 070ac2f
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions gems/aws-sdk-core/lib/seahorse/client/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,33 +237,3 @@ def inherited(subclass)
end
end
end

class TestPlugin < Seahorse::Client::Plugin
option(:new_config, 'new_value')

def before_initialize(client_class, options)
puts "before initialize with: #{client_class} and #{options}"
end

def after_initialize(client)
puts "after initialize with: #{client}"
end

def add_handlers(handlers, config)
puts "add handlers method!"
handlers.add(Handler, step: :initialize)
end

def add_options(config)
puts "add options method!"
config.add_option(:another_new_config, 'another_new_value')
super
end

class Handler < Seahorse::Client::Handler
def call(context)
puts "I was invoked! with #{context.config.new_config} and #{context.config.another_new_config}"
@handler.call(context)
end
end
end

0 comments on commit 070ac2f

Please sign in to comment.