lib/legion/extensions/builders/runners.rb in legionio-0.4.3 vs lib/legion/extensions/builders/runners.rb in legionio-1.2.0

- old
+ new

@@ -29,10 +29,12 @@ runner_class: runner_class, runner_path: file, class_methods: {} } + @runners[runner_name.to_sym][:scheduled_tasks] = loaded_runner.scheduled_tasks if loaded_runner.method_defined? :scheduled_tasks + if settings.key?(:runners) && settings[:runners].key?(runner_name.to_sym) @runners[runner_name.to_sym][:desc] = settings[:runners][runner_name.to_sym][:desc] end loaded_runner.public_instance_methods(false).each do |runner_method| @@ -40,9 +42,11 @@ args: loaded_runner.instance_method(runner_method).parameters } end loaded_runner.methods(false).each do |runner_method| + next if %i[scheduled_tasks runner_description].include? runner_method + @runners[runner_name.to_sym][:class_methods][runner_method] = { args: loaded_runner.method(runner_method).parameters } end end