# File lib/god/task.rb, line 367 def handle_event(condition) # lookup metric metric = self.directory[condition] # log messages = self.log_line(self, metric, condition, true) # notify if condition.notify self.notify(condition, messages.last) end # get the destination dest = if condition.transition # condition override condition.transition else # regular metric.destination && metric.destination[true] end if dest self.move(dest) end end