Sha256: 8dcd87bc1462e417b57b700a9583845ee140e0c74d44165a210f681c81513096

Contents?: true

Size: 946 Bytes

Versions: 6

Compression:

Stored size: 946 Bytes

Contents

module Legion
  module Extensions
    module Actors
      module Base
        include Legion::Extensions::Helpers::Lex

        def runner
          Legion::Runner.run(runner_class: runner_class, function: function, check_subtask: check_subtask?, generate_task: generate_task?)
        rescue StandardError => e
          Legion::Logging.error e.message
          Legion::Logging.error e.backtrace
        end

        def manual
          runner_class.send(runner_function, **args)
        rescue StandardError => e
          Legion::Logging.error e.message
          Legion::Logging.error e.backtrace
        end

        def function
          nil
        end

        def use_runner?
          true
        end

        def args
          {}
        end

        def check_subtask?
          true
        end

        def generate_task?
          false
        end

        def enabled?
          true
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
legionio-1.2.1 lib/legion/extensions/actors/base.rb
legionio-1.2.0 lib/legion/extensions/actors/base.rb
legionio-0.4.3 lib/legion/extensions/actors/base.rb
legionio-0.4.2 lib/legion/extensions/actors/base.rb
legionio-0.4.1 lib/legion/extensions/actors/base.rb
legionio-0.4.0 lib/legion/extensions/actors/base.rb