lib/heirloom/archive/setuper.rb in heirloom-0.5.0rc4 vs lib/heirloom/archive/setuper.rb in heirloom-0.6.0rc1
- old
+ new
@@ -12,10 +12,11 @@
def setup(args)
@regions = args[:regions]
@bucket_prefix = args[:bucket_prefix]
create_buckets
create_domain
+ @logger.info "Setup complete."
end
private
def create_buckets
@@ -31,10 +32,15 @@
end
end
end
def create_domain
- sdb.create_domain @domain unless verifier.domain_exists?
+ region = @config.metadata_region
+
+ unless verifier.domain_exists?
+ @logger.info "Creating domain #{@name} in #{region}."
+ sdb.create_domain @domain
+ end
end
def verifier
@verifier ||= Verifier.new :config => @config,
:name => @name