Sha256: cf870be174f0569d8ef7d6ae1587f173e63b205a5d88e9f09232d5659d99938d

Contents?: true

Size: 257 Bytes

Versions: 8

Compression:

Stored size: 257 Bytes

Contents

require "thor/error"
require "thor/shell/color"

module Prez
  class Error < Thor::Error
    def initialize(msg)
      super colorize(msg)
    end

    private

    def colorize(msg)
      Thor::Shell::Color.new.set_color msg, :red, :bold
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
prez-0.1.2 lib/prez/error.rb
prez-0.1.1 lib/prez/error.rb
prez-0.1.0 lib/prez/error.rb
prez-0.0.6 lib/prez/error.rb
prez-0.0.5 lib/prez/error.rb
prez-0.0.4 lib/prez/error.rb
prez-0.0.3 lib/prez/error.rb
prez-0.0.2 lib/prez/error.rb