lib/clomp/track.rb in clomp-0.0.9 vs lib/clomp/track.rb in clomp-0.0.10
- old
+ new
@@ -46,14 +46,18 @@
else
mark_as_success! if object.public_send(name.to_sym, options) != false
end
@block.(options) if success? && @block
-
+
+ self.executed = true
+
self
rescue => e
@error = e.message
+
+ self.executed = false
mark_as_failure!
self
end
\ No newline at end of file