# File lib/god/task.rb, line 101 def lifecycle # create a new metric to hold the watch and conditions m = Metric.new(self) # let the config file define some conditions on the metric yield(m) # record the metric self.metrics[nil] << m end