lib/heirloom/cli/list.rb in heirloom-0.4.1rc1 vs lib/heirloom/cli/list.rb in heirloom-0.5.0rc1
- old
+ new
@@ -8,12 +8,12 @@
@opts = read_options
@logger = HeirloomLogger.new :log_level => @opts[:level]
@config = load_config :logger => @logger,
:opts => @opts
- exit 1 unless valid_options? :provided => @opts,
- :required => [:name],
- :logger => @logger
+ ensure_valid_options :provided => @opts,
+ :required => [:name],
+ :config => @config
ensure_domain_exists :name => @opts[:name], :config => @config
@archive = Archive.new :name => @opts[:name],
:config => @config