Sha256: dd395e47696ae0fe201593b556702bea978594f718b07767d9fe7e0e18b5c229

Contents?: true

Size: 966 Bytes

Versions: 36

Compression:

Stored size: 966 Bytes

Contents


module Rudy; module CLI; 
module AWS; module SDB;
  
  class Domains < Rudy::CLI::CommandBase
        
    def domains
      @sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
      domains = @sdb.list_domains
      puts domains
      puts "No domains" if domains.nil? || domains.empty?
    end
    
    def domains_create_valid?
      raise "No name specified" unless @argv.name
      true
    end
    def domains_create
      @sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
      @sdb.create_domain @argv.name
      execute_check(:low)
      domains
    end
    
    def domains_destroy_valid?
      raise "No name specified" unless @argv.name
      true
    end
    def domains_destroy
      @sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
      execute_check(:medium)
      @sdb.destroy_domain @argv.name
      domains
    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/domains.rb
solutious-rudy-0.9.1 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.9.2 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.9.3 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.9.4 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.020 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.019 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.018 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.017 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.016 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.015 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.014 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.013 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.012 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.011 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.010 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.009 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.008 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.007 lib/rudy/cli/aws/sdb/domains.rb
rudy-0.9.8.006 lib/rudy/cli/aws/sdb/domains.rb