Sha256: deb5e8cff783778e309f7fa24c27dc3709632e61d0af4423da0bcfbf6d905f7d

Contents?: true

Size: 965 Bytes

Versions: 43

Compression:

Stored size: 965 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?
      @sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
      raise "No name specified" unless @argv.name
      true
    end
    def domains_create
      @sdb.create_domain @argv.name
      execute_check(:low)
      domains
    end
    
    def domains_destroy_valid?
      @sdb = Rudy::AWS::SDB.new(@@global.accesskey, @@global.secretkey, @@global.region)
      raise "No name specified" unless @argv.name
      true
    end
    def domains_destroy
      execute_check(:medium)
      @sdb.destroy_domain @argv.name
      domains
    end
    
  end
  
end; end
end; end

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
sabat-rudy-0.8.0 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.0 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.1 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.2 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.3 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.4 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.5 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.6 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.7 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.6.8 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.7.0 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.7.1 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.7.2 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.7.3 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.7.4 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.7.5 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.7.6 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.8.0 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.8.1 lib/rudy/cli/aws/sdb/domains.rb
solutious-rudy-0.8.2 lib/rudy/cli/aws/sdb/domains.rb