Sha256: 2e862e4e62e87ae293c7754261d3734e82ac47e57725e6fa8b99b9911e14f5f5
Contents?: true
Size: 890 Bytes
Versions: 4
Compression:
Stored size: 890 Bytes
Contents
module Heirloom class Verifier def initialize(args) @config = args[:config] @name = args[:name] @logger = @config.logger end def buckets_exist?(args) bucket_prefix = args[:bucket_prefix] regions = args[:regions] result = true regions.each do |region| bucket = "#{bucket_prefix}-#{region}" s3 ||= AWS::S3.new :config => @config, :region => region if s3.get_bucket bucket @logger.debug "#{bucket} exists in #{region}" else @logger.debug "#{bucket} in #{region} does not exist" result = false end end result end def domain_exists? domain = "heirloom_#{@name}" sdb.domain_exists? domain end private def sdb @sdb ||= AWS::SimpleDB.new :config => @config end end end
Version data entries
4 entries across 4 versions & 1 rubygems