lib/gitenv/renderer.rb in gitenv-1.1.0 vs lib/gitenv/renderer.rb in gitenv-1.2.0

- old
+ new

@@ -1,20 +1,14 @@ - module Gitenv - class Renderer - - def initialize options = {} + def initialize(options = {}) @options = options end - def render action - + def render(action) status = action.status color = status.color - error = if !status.ok? - "\n #{Paint[status.message, color]}" - end + error = ("\n #{Paint[status.message, color]}" unless status.ok?) " #{Paint[status.marker, color]} #{action}#{error}" end end end