Sha256: 4ba01d94794f9b42e6cb30768c72ca7525748e32a1de06941ecfd71cbc2352e7
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
module Sdbport class CLI class Destroy def destroy opts = read_options logger = SdbportLogger.new :log_level => opts[:level] domain = Domain.new :name => opts[:name], :region => opts[:region], :access_key => opts[:access_key], :secret_key => opts[:secret_key], :logger => logger domain.destroy end def read_options Trollop::options do version Sdbport::VERSION banner <<-EOS Destroy SimpleDB Domain Usage: sdbport destroy -a xxx -k yyy -r us-west-1 -n domain EOS opt :help, "Display Help" opt :level, "Log Level", :type => :string, :default => 'info' opt :name, "Simple DB Domain Name", :type => :string opt :region, "AWS region", :type => :string opt :access_key, "AWS Access Key ID", :type => :string opt :secret_key, "AWS Secret Access Key", :type => :string end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sdbport-0.2.0 | lib/sdbport/cli/destroy.rb |