lib/fozzie/classes.rb in fozzie-0.0.8 vs lib/fozzie/classes.rb in fozzie-0.0.9

- old
+ new

@@ -29,14 +29,13 @@ def deploy; deployed; end def deployed event :deploy end - def increment_on(stat, bool, sample_rate=1) - raise ArgumentError, "value must be True or False" unless [TrueClass, FalseClass].include?(bool.class) - key = "#{stat}.%s" % (bool ? "success" : "fail") + def increment_on(stat, perf, sample_rate=1) + key = "#{stat}.%s" % (perf ? "success" : "fail") increment(key, sample_rate) - bool + perf end private def event(type) \ No newline at end of file