Sha256: d1d3b38dff6ab939c1daad19f6bd354292508cf92a31192a82a521290df7ca86

Contents?: true

Size: 517 Bytes

Versions: 27

Compression:

Stored size: 517 Bytes

Contents

module Taskinator
  class Executor

    attr_reader :definition
    attr_reader :task

    def initialize(definition, task=nil)
      @definition = definition
      @task = task

      # include the module into the eigen class, so it is only for this instance
      eigen = class << self; self; end
      eigen.send(:include, definition)
    end

    def process_uuid
      task.process_uuid if task
    end

    def uuid
      task.uuid if task
    end

    def options
      task.options if task
    end

  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
taskinator-0.3.6 lib/taskinator/executor.rb
taskinator-0.3.5 lib/taskinator/executor.rb
taskinator-0.3.3 lib/taskinator/executor.rb
taskinator-0.3.2 lib/taskinator/executor.rb
taskinator-0.3.1 lib/taskinator/executor.rb
taskinator-0.3.0 lib/taskinator/executor.rb
taskinator-0.2.0 lib/taskinator/executor.rb