Sha256: 8776e39a82b265b39446cf0d4940667967beda0c179d154963da57e968d73e26
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
module Heirloom class Catalog class Add def initialize(args) @config = args[:config] @name = args[:name] @logger = @config.logger end def add_to_catalog(args) regions = args[:regions] bucket_prefix = args[:bucket_prefix] @logger.info "Adding #{@name} to catalog." sdb.put_attributes 'heirloom', "heirloom_#{@name}", { "regions" => regions, "bucket_prefix" => bucket_prefix } end private def sdb @sdb ||= AWS::SimpleDB.new :config => @config end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.8.0 | lib/heirloom/catalog/add.rb |