lib/heirloom/artifact/artifact_updater.rb in heirloom-0.1.3 vs lib/heirloom/artifact/artifact_updater.rb in heirloom-0.1.4

- old
+ new

@@ -2,20 +2,21 @@ class ArtifactUpdater def initialize(args) @config = args[:config] - @logger = args[:logger] + @name = args[:name] + @id = args[:id] + + @logger = @config.logger end def update(args) attribute = args[:attribute] - id = args[:id] - name = args[:name] update = args[:update] - sdb.put_attributes name, id, { attribute => update }, { :replace => attribute } - @logger.info "Updated #{name} (#{id}): #{attribute} = #{update}" + sdb.put_attributes @name, @id, { attribute => update }, { :replace => attribute } + @logger.info "Updated #{@name} (#{@id}): #{attribute} = #{update}." end private def sdb