lib/cc/analyzer/formatters/formatter.rb in codeclimate-0.1.2 vs lib/cc/analyzer/formatters/formatter.rb in codeclimate-0.1.3

- old
+ new

@@ -11,19 +11,26 @@ def started end def engine_running(engine) + @current_engine = engine yield + ensure + @current_engine = nil end def finished end def failed(output) end InvalidFormatterError = Class.new(StandardError) + + private + + attr_reader :current_engine end end end end