Sha256: 8b45f8e3803bc80bad14fec72ec9445820ed79ba9c9d1b832dd33b1055c221e1

Contents?: true

Size: 589 Bytes

Versions: 29

Compression:

Stored size: 589 Bytes

Contents

module Heirloom
  class Catalog
    class Setup

      def initialize(args)
        @config = args[:config]
        @logger = @config.logger
        @region = @config.metadata_region
      end

      def create_catalog_domain
        unless verify.catalog_domain_exists?
          @logger.info "Creating catalog in #{@region}."
          sdb.create_domain "heirloom"
        end
      end

      private

      def sdb
        @sdb ||= AWS::SimpleDB.new :config => @config
      end

      def verify
        @verify ||= Catalog::Verify.new :config => @config
      end

    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
heirloom-0.12.7 lib/heirloom/catalog/setup.rb
heirloom-0.12.5 lib/heirloom/catalog/setup.rb
heirloom-0.12.4 lib/heirloom/catalog/setup.rb
heirloom-0.12.3 lib/heirloom/catalog/setup.rb
heirloom-0.12.2 lib/heirloom/catalog/setup.rb
heirloom-0.12.1 lib/heirloom/catalog/setup.rb
heirloom-0.12.0 lib/heirloom/catalog/setup.rb
heirloom-0.11.2 lib/heirloom/catalog/setup.rb
heirloom-0.11.1 lib/heirloom/catalog/setup.rb
heirloom-0.11.0 lib/heirloom/catalog/setup.rb
heirloom-0.11.0.beta.2 lib/heirloom/catalog/setup.rb
heirloom-0.11.0.beta.1 lib/heirloom/catalog/setup.rb
heirloom-0.10.1 lib/heirloom/catalog/setup.rb
heirloom-0.10.0 lib/heirloom/catalog/setup.rb
heirloom-0.9.0 lib/heirloom/catalog/setup.rb
heirloom-0.8.3 lib/heirloom/catalog/setup.rb
heirloom-0.8.2 lib/heirloom/catalog/setup.rb
heirloom-0.8.1 lib/heirloom/catalog/setup.rb
heirloom-0.8.0 lib/heirloom/catalog/setup.rb
heirloom-0.7.4 lib/heirloom/catalog/setup.rb