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