plugin.rb 415 B

12345678910111213141516171819202122232425
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SystemReport::Plugin
  3. include Mixin::RequiredSubPaths
  4. def self.list
  5. @list ||= descendants.sort_by(&:name)
  6. end
  7. def self.name_plugin
  8. name.sub('SystemReport::Plugin::', '')
  9. end
  10. def self.path
  11. name_plugin.split('::')
  12. end
  13. def initialize
  14. # TODO
  15. end
  16. def fetch
  17. raise NotImplementedError
  18. end
  19. end