Sha256: aa50f1f39c36504aa1020e86faae3bec2aaae44e3a063acd86c23eabc99d57cb

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

# frozen_string_literal: true

module Tataru
  module Instructions
    # instruction to delete
    class DeleteInstruction < ResourceInstruction
      def run
        resource_class = desc.resource_class
        resource = resource_class.new(memory.hash[:remote_ids][resource_name])
        resource.delete
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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