Sha256: 112d6d9209410537649a65e0c031c5bb0450075fd19fd1bcd0d17dd912f6ecec
Contents?: true
Size: 565 Bytes
Versions: 6
Compression:
Stored size: 565 Bytes
Contents
module Heirloom class Updater def initialize(args) @config = args[:config] @name = args[:name] @id = args[:id] @domain = "heirloom_#{@name}" @logger = @config.logger end def update(args) attribute = args[:attribute] value = args[:value] sdb.put_attributes @domain, @id, { attribute => value }, { :replace => attribute } @logger.info "Updated #{@name} (#{@id}): #{attribute} = #{value}." end private def sdb @sdb ||= AWS::SimpleDB.new :config => @config end end end
Version data entries
6 entries across 6 versions & 1 rubygems