Sha256: e2c1d271fd1f5e76359ba972936b06fb5b57c1c9ab14dfa4d6ce2169f82999a3

Contents?: true

Size: 351 Bytes

Versions: 17

Compression:

Stored size: 351 Bytes

Contents

module Oxidized
  class Job < Thread
    attr_reader :start, :end, :status, :time, :node, :config
    def initialize node
      @node         = node
      @start        = Time.now.utc
      super do |node|
        @status, @config = node.run
        @end             = Time.now.utc
        @time            = @end - @start
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
oxidized-0.9.0 lib/oxidized/job.rb
oxidized-0.8.1 lib/oxidized/job.rb
oxidized-0.8.0 lib/oxidized/job.rb
oxidized-0.7.2 lib/oxidized/job.rb
oxidized-0.7.1 lib/oxidized/job.rb
oxidized-0.7.0 lib/oxidized/job.rb
oxidized-0.6.0 lib/oxidized/job.rb
oxidized-0.5.0 lib/oxidized/job.rb
oxidized-0.4.1 lib/oxidized/job.rb
oxidized-0.4.0 lib/oxidized/job.rb
oxidized-0.3.0 lib/oxidized/job.rb
oxidized-0.2.4 lib/oxidized/job.rb
oxidized-0.2.3 lib/oxidized/job.rb
oxidized-0.2.2 lib/oxidized/job.rb
oxidized-0.2.1 lib/oxidized/job.rb
oxidized-0.2.0 lib/oxidized/job.rb
oxidized-0.1.1 lib/oxidized/job.rb