Sha256: d57023d0ce91543845d5253be624c59f9ed65bd2d689e1874c4b6f706a8602fd
Contents?: true
Size: 1.01 KB
Versions: 12
Compression:
Stored size: 1.01 KB
Contents
# encoding: utf-8 require 'term/ansicolor' module RakeNBake class Baker def self.log_step message puts "\n" + Term::ANSIColor.blue + Term::ANSIColor.underline + '● ' + message + Term::ANSIColor.reset end def self.log_warn message puts Term::ANSIColor.red + Term::ANSIColor.bold + '! ' + message + Term::ANSIColor.reset end def self.log_passed message puts Term::ANSIColor.green + message + Term::ANSIColor.reset end def self.log_missing_gem gem_name, tool_name = gem_name $stderr.puts \ Term::ANSIColor.yellow + Term::ANSIColor.underline + "! This task is not available because '#{tool_name}' is not available." + Term::ANSIColor.reset $stderr.puts \ "Try adding \"gem '#{gem_name}'\" to your Gemfile or run `gem install #{gem_name}` and try again." + Term::ANSIColor.reset end end end
Version data entries
12 entries across 12 versions & 1 rubygems