Sha256: 4c3144d0bdf60f231659da1368e0874d6b69b63369439950e231e51f1058f0e2
Contents?: true
Size: 527 Bytes
Versions: 4
Compression:
Stored size: 527 Bytes
Contents
module Heirloom class Updater def initialize(args) @config = args[:config] @name = args[:name] @id = args[:id] @logger = @config.logger end def update(args) attribute = args[:attribute] value = args[:value] sdb.put_attributes @name, @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
4 entries across 4 versions & 1 rubygems