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
solutious-rudy-0.9.0 lib/rudy/cli/aws/sdb/select.rb
solutious-rudy-0.9.1 lib/rudy/cli/aws/sdb/select.rb
solutious-rudy-0.9.2 lib/rudy/cli/aws/sdb/select.rb
solutious-rudy-0.9.3 lib/rudy/cli/aws/sdb/select.rb
solutious-rudy-0.9.4 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.020 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.019 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.018 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.017 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.016 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.015 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.014 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.013 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.012 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.011 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.010 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.009 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.008 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.007 lib/rudy/cli/aws/sdb/select.rb
rudy-0.9.8.006 lib/rudy/cli/aws/sdb/select.rb