check.rb 465 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class Sequencer
  3. class Unit
  4. module Import
  5. module Common
  6. module ImportMode
  7. class Check < Sequencer::Unit::Base
  8. def process
  9. # check if system is in import mode
  10. return if Setting.get('import_mode')
  11. raise 'System is not in import mode!'
  12. end
  13. end
  14. end
  15. end
  16. end
  17. end
  18. end