lib/heirloom/cli/destroy.rb in heirloom-0.4.1rc1 vs lib/heirloom/cli/destroy.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, :id],
- :logger => @logger
+ ensure_valid_options :provided => @opts,
+ :required => [:name, :id],
+ :config => @config
ensure_domain_exists :name => @opts[:name], :config => @config
@name = @opts[:name]
@id = @opts[:id]