resources.rb 678 B

1234567891011121314151617181920212223242526272829
  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 SubSequence
  7. module Mixin
  8. module Resources
  9. include ::Sequencer::Unit::Import::Common::SubSequence::Mixin::Base
  10. def process
  11. return if resources.blank?
  12. sequence_resources(resources)
  13. end
  14. private
  15. def resources
  16. raise "Missing implementation of '#{__method__}' method for '#{self.class.name}'"
  17. end
  18. end
  19. end
  20. end
  21. end
  22. end
  23. end
  24. end