lib/heirloom/cli/teardown.rb in heirloom-0.7.0rc1 vs lib/heirloom/cli/teardown.rb in heirloom-0.7.0
- old
+ new
@@ -17,9 +17,14 @@
@catalog = Heirloom::Catalog.new :name => @opts[:name],
:config => @config
@archive = Archive.new :name => @opts[:name],
:config => @config
+ ensure_catalog_domain_exists :config => @config,
+ :catalog => @catalog
+ ensure_entry_exists_in_catalog :config => @config,
+ :catalog => @catalog,
+ :entry => @opts[:name]
end
def teardown
ensure_domain_exists :name => @opts[:name],
:config => @config