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.5.2 lib/taskinator/executor.rb
taskinator-0.5.1 lib/taskinator/executor.rb
taskinator-0.5.0 lib/taskinator/executor.rb
taskinator-0.4.7 lib/taskinator/executor.rb
taskinator-0.4.6 lib/taskinator/executor.rb
taskinator-0.4.5 lib/taskinator/executor.rb
taskinator-0.4.4 lib/taskinator/executor.rb
taskinator-0.4.3 lib/taskinator/executor.rb
taskinator-0.4.2 lib/taskinator/executor.rb
taskinator-0.4.1 lib/taskinator/executor.rb
taskinator-0.4.0 lib/taskinator/executor.rb
taskinator-0.3.16 lib/taskinator/executor.rb
taskinator-0.3.15 lib/taskinator/executor.rb
taskinator-0.3.14 lib/taskinator/executor.rb
taskinator-0.3.13 lib/taskinator/executor.rb
taskinator-0.3.12 lib/taskinator/executor.rb
taskinator-0.3.11 lib/taskinator/executor.rb
taskinator-0.3.10 lib/taskinator/executor.rb
taskinator-0.3.9 lib/taskinator/executor.rb
taskinator-0.3.7 lib/taskinator/executor.rb