Sha256: 3d2d2cb16a444181e93b804d471b0e3243bf4cbf2770d398723299dad7bfb959
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
module Heirloom class ArtifactUpdater def initialize(args) @config = args[:config] @name = args[:name] @id = args[:id] @logger = @config.logger end def update(args) attribute = args[:attribute] update = args[:update] sdb.put_attributes @name, @id, { attribute => update }, { :replace => attribute } @logger.info "Updated #{@name} (#{@id}): #{attribute} = #{update}." end private def sdb @sdb ||= AWS::SimpleDB.new :config => @config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.1.4 | lib/heirloom/artifact/artifact_updater.rb |