Sha256: 07c33766ef64787046b7fa6ed4082ddce060178cefc2b0b955b9ea3620c27e70

Contents?: true

Size: 342 Bytes

Versions: 6

Compression:

Stored size: 342 Bytes

Contents

module Gitenv

  class Renderer

    def initialize options = {}
      @options = options
    end

    def render action

      status = action.status
      color = status.color
      error = if !status.ok?
        "\n   #{Paint[status.message, color]}"
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gitenv-1.1.0 lib/gitenv/renderer.rb
gitenv-1.0.4 lib/gitenv/renderer.rb
gitenv-1.0.0 lib/gitenv/renderer.rb
gitenv-0.3.0 lib/gitenv/renderer.rb
gitenv-0.2.0 lib/gitenv/renderer.rb
gitenv-0.1.0 lib/gitenv/renderer.rb