Sha256: c2c40825609e91a263bf2b41557165926761cb38f1dcc51da13ee1371176fed4

Contents?: true

Size: 411 Bytes

Versions: 1

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

module Tataru
  module Instructions
    # check that delete is completed
    class CheckDeleteInstruction < CheckInstruction
      def initialize
        super :delete
      end

      def after_complete
        memory.hash[:deleted] << resource_name

        return unless desc.needs_remote_id?

        memory.hash[:remote_ids].delete(resource_name)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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