Sha256: 463b4538b42c65ccf34f4c9b88271a798285b6375ad32dd0dd9783317b9e59fc

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

module Tataru
  module Instructions
    # puts remote id up for deletion
    class MarkDeletableInstruction < ResourceInstruction
      def run
        remote_id = memory.hash[:remote_ids].delete(resource_name)
        memory.hash[:remote_ids]["_deletable_#{resource_name}"] = remote_id
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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