lib/heirloom/cli/shared.rb in heirloom-0.8.0 vs lib/heirloom/cli/shared.rb in heirloom-0.8.1
- old
+ new
@@ -116,11 +116,11 @@
archive = Archive.new :name => name,
:config => config
unless archive.domain_exists?
- logger.error "'#{name}' does not exist in '#{config.metadata_region}' catalog."
+ logger.error "'#{name}' metadata domain does not exist in '#{config.metadata_region}'."
exit 1
end
end
def ensure_archive_exists(args)
@@ -164,22 +164,9 @@
logger = config.logger
region = config.metadata_region
unless catalog.entry_exists_in_catalog? entry
logger.error "Entry for #{entry} does not exist in #{region} catalog."
- exit 1
- end
- end
-
- def ensure_entry_does_not_exist_in_catalog(args)
- config = args[:config]
- catalog = args[:catalog]
- entry = args[:entry]
- logger = config.logger
- region = config.metadata_region
-
- if catalog.entry_exists_in_catalog? entry
- logger.error "Entry for #{entry} exists in #{region} catalog."
exit 1
end
end
def latest_id(args)