Method: Oxidized::Job#initialize
- Defined in:
- lib/oxidized/job.rb
#initialize(node) ⇒ Job
Returns a new instance of Job.
5 6 7 8 9 10 11 12 13 14 15 |
# 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 |