Class: Importo::RevertService
- Inherits:
-
ApplicationService
- Object
- ApplicationService
- Importo::RevertService
- Defined in:
- app/services/importo/revert_service.rb
Instance Method Summary collapse
Methods inherited from ApplicationService
Instance Method Details
#perform ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/services/importo/revert_service.rb', line 5 def perform sleep 1 context.import.importer.revert! rescue context.import.failure! context.fail! end |