class CuffSert::JsonRenderer
Public Instance Methods
abort(event)
click to toggle source
# File lib/cuffsert/presenters.rb, line 187 def abort(event) @error.write(event.message + "\n") unless @verbosity < 1 end
change_set(change_set)
click to toggle source
# File lib/cuffsert/presenters.rb, line 171 def change_set(change_set) @output.write(change_set.to_h.to_json) unless @verbosity < 1 end
event(event, resource)
click to toggle source
# File lib/cuffsert/presenters.rb, line 175 def event(event, resource) @output.write(event.to_h.to_json) unless @verbosity < 1 end
report(event)
click to toggle source
# File lib/cuffsert/presenters.rb, line 183 def report(event) @output.write(event.message + "\n") unless @verbosity < 2 end
stack(event, stack)
click to toggle source
# File lib/cuffsert/presenters.rb, line 179 def stack(event, stack) @output.write(stack.to_json) unless @verbosity < 1 end
templates(current, pending)
click to toggle source
# File lib/cuffsert/presenters.rb, line 164 def templates(current, pending) if @verbosity >= 1 @output.write(current.to_json) @output.write(pending.to_json) end end