module Locomotive::Wagon::CLI::ForceColor
Public Instance Methods
force_color_if_asked(options)
click to toggle source
# File lib/locomotive/wagon/cli.rb, line 37 def force_color_if_asked(options) if options[:force_color] # thor require 'locomotive/wagon/tools/thor' self.shell = Thor::Shell::ForceColor.new # bypass colorize code STDOUT.instance_eval { def isatty; true; end; } end end
isatty()
click to toggle source
# File lib/locomotive/wagon/cli.rb, line 44 def isatty; true; end