require 'legion/extensions/tasker/version' require 'legion/extensions' require 'legion/extensions/tasker/actors/task_update' require 'legion/extensions/tasker/actors/task_log' require 'legion/extensions/tasker/actors/lex_register' require 'legion/extensions/tasker/actors/task_subtask' require 'legion/extensions/tasker/actors/task_check_subtask' module Legion module Extensions module Tasker extend Legion::Extensions::Default attr_reader :actors, :requirements, :default_settings, :autobuild def self.actors [ { path: path + 'actors/task_update', class: klass::Actor::TaskUpdater, group_name: 'taskupdater' }, { path: path + 'actors/task_log', class: klass::Actor::TaskLog, group_name: 'task_logger' }, { path: path + 'actors/lex_register', class: klass::Actor::LexRegister, group_name: 'lex_register' }, { path: path + 'actors/task_check_subtask', class: klass::Actor::TaskCheckSubtask, group_name: 'task_check_subtask' } ] end def self.lex_methods [{ namespace: 'legion::extensions::tasker::runners::tasklog', queue: 'task.log', uri: 'task_log', class_methods: { add_log: {}, delete_log: {}, delete_all_task_logs: {} } }, { namespace: 'legion::extensions::tasker::runners::taskupdater', queue: 'task', uri: 'task', class_methods: { update_status: {} } }, { namespace: 'legion::extensions::tasker::runners::lexregister', queue: 'lex.register', uri: 'lex_register', class_methods: { save: {}, save_namespace: {}, save_funciton: {} } }] end def self.requirements # ['legion-transport', 'legion-data'] ['legion-transport'] end def self.klass Legion::Extensions::Tasker end def self.path 'legion/extensions/tasker/' end module_function end end end