Sha256: 9475888a5cf0280366e49c13da2b51aaa769ead07094aa6603edeb5418152c22

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

module Tataru
  module Instructions
    # update a resource
    class UpdateInstruction < ResourceInstruction
      expects :properties

      def run
        resource_class = desc.resource_class
        resource = resource_class.new(memory.hash[:remote_ids][resource_name])
        resource.update(properties)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tataru-0.2.0 lib/tataru/instructions/update_instruction.rb