class Oxidized::Job
Attributes
Public Class Methods
Source
# File lib/oxidized/job.rb, line 7 def initialize(node) @node = node @start = Time.now.utc self.name = "Oxidized::Job '#{@node.name}'" super do logger.debug "Starting fetching process for #{@node.name} at #{Time.now.utc}" @status, @config = @node.run @end = Time.now.utc @time = @end - @start logger.debug "Config fetched for #{@node.name} at #{@end}" end end
Calls superclass method