lib/chicanery/handlers.rb in chicanery-0.0.4 vs lib/chicanery/handlers.rb in chicanery-0.0.5
- old
+ new
@@ -1,7 +1,7 @@
module Chicanery
module Handlers
- %w{run started succeeded failed broken fixed}.each do |status|
+ %w{run started succeeded failed broken fixed commit}.each do |status|
class_eval <<-EOF
def when_#{status} &block
#{status}_handlers << block
end
\ No newline at end of file