Sha256: ca2e96b452195f28e33a8ecb4b92c90a49933565b6419211743fc47637315608

Contents?: true

Size: 454 Bytes

Versions: 36

Compression:

Stored size: 454 Bytes

Contents

module Rudy; module CLI; 
module AWS; module SDB;
  
  class Select < Rudy::CLI::CommandBase
    
    def query_valid?
      raise "No select query supplied" if @argv.empty?
      true
    end
    
    def query
      @sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
      results = @sdb.select @argv.query 
      return if results.nil?
      results.each do |r|
        p r
      end
    end
  end
  
end; end
end; end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
rudy-0.9.8.005 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.004 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.003 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.002 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.001 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.7.001 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.6.001 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.5.004 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.5.003 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.5.002 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.5 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.4 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.3 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.2 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.0 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.1 lib/rudy/cli/aws/sdb/select.rb