class Oxidized::Job

Attributes

config[R]
end[R]
node[R]
start[R]
status[R]
time[R]

Public Class Methods

new(node) click to toggle source
Calls superclass method
# File lib/oxidized/job.rb, line 5
def initialize(node)
  @node         = node
  @start        = Time.now.utc
  super do
    Oxidized.logger.debug "lib/oxidized/job.rb: Starting fetching process for #{@node.name} at #{Time.now.utc}"
    @status, @config = @node.run
    @end             = Time.now.utc
    @time            = @end - @start
    Oxidized.logger.debug "lib/oxidized/job.rb: Config fetched for #{@node.name} at #{@end}"
  end
end