Sha256: fce078a18fec7a4e42d85154252903a24390eb9fc698044ee30292b647ab2ed0

Contents?: true

Size: 237 Bytes

Versions: 13

Compression:

Stored size: 237 Bytes

Contents

# frozen_string_literal: true

module Importo
  class RevertService < ApplicationService
    def perform
      sleep 1

      context.import.importer.revert!
    rescue
      context.import.failure!
      context.fail!
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
importo-3.0.21 app/services/importo/revert_service.rb
importo-3.0.20 app/services/importo/revert_service.rb
importo-3.0.19 app/services/importo/revert_service.rb
importo-3.0.18 app/services/importo/revert_service.rb
importo-3.0.17 app/services/importo/revert_service.rb
importo-3.0.16 app/services/importo/revert_service.rb
importo-3.0.15 app/services/importo/revert_service.rb
importo-3.0.14 app/services/importo/revert_service.rb
importo-3.0.13 app/services/importo/revert_service.rb
importo-3.0.12 app/services/importo/revert_service.rb
importo-3.0.11 app/services/importo/revert_service.rb
importo-3.0.10 app/services/importo/revert_service.rb
importo-3.0.9 app/services/importo/revert_service.rb