class Gitenv::Renderer

Public Class Methods

new(options = {}) click to toggle source
# File lib/gitenv/renderer.rb, line 3
def initialize(options = {})
  @options = options
end

Public Instance Methods

render(action) click to toggle source
# File lib/gitenv/renderer.rb, line 7
def render(action)
  status = action.status
  color = status.color
  error = ("\n   #{Paint[status.message, color]}" unless status.ok?)

  " #{Paint[status.marker, color]} #{action}#{error}"
end