lib/heirloom/cli/list.rb in heirloom-0.5.0rc4 vs lib/heirloom/cli/list.rb in heirloom-0.6.0rc1
- old
+ new
@@ -11,11 +11,12 @@
:opts => @opts
ensure_valid_options :provided => @opts,
:required => [:name],
:config => @config
-
+ ensure_valid_region :region => @opts[:metadata_region],
+ :config => @config
ensure_domain_exists :name => @opts[:name], :config => @config
@archive = Archive.new :name => @opts[:name],
:config => @config
end
@@ -42,9 +43,11 @@
opt :count, "Number of IDs to return.", :type => :integer,
:default => 10
opt :help, "Display Help"
opt :level, "Log level [debug|info|warn|error].", :type => :string,
:default => 'info'
+ opt :metadata_region, "AWS region to store Heirloom metadata.", :type => :string,
+ :default => 'us-west-1'
opt :name, "Name of archive.", :type => :string
opt :aws_access_key, "AWS Access Key ID", :type => :string,
:short => :none
opt :aws_secret_key, "AWS Secret Access Key", :type => :string,
:short => :none