lib/heirloom/cli/update.rb in heirloom-0.4.1rc1 vs lib/heirloom/cli/update.rb in heirloom-0.5.0rc1

- old
+ new

@@ -8,14 +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, - :attribute, - :updated_value], - :logger => @logger + ensure_valid_options :provided => @opts, + :required => [:name, :id, :attribute, :updated_value], + :config => @config ensure_domain_exists :name => @opts[:name], :config => @config @archive = Archive.new :name => @opts[:name], :id => @opts[:id],