lib/dynamodb/streams/client/cli.rb in dynamodb-streams-client-0.0.3 vs lib/dynamodb/streams/client/cli.rb in dynamodb-streams-client-0.0.4

- old
+ new

@@ -5,10 +5,11 @@ class_option 'access-key', :aliases => '-k' class_option 'secret-key', :aliases => '-s' class_option 'endpoint', :aliases => '-e' class_option 'region', :aliases => '-r' + class_option 'debug' desc 'list_streams', 'Returns an array of stream IDs' def list_streams res_data = iterate('StreamId') do |rh| client.query('ListStreams', rh) @@ -96,8 +97,10 @@ :endpoint => options.fetch('endpoint', ENV['DYNAMODB_STREAMS_ENDPOINT']), :region => options['region'], } @client = DynamoDB::Streams::Client.new(client_options) + @client.debug = true if options['debug'] + @client end end end