dont try to colorize windows

This commit is contained in:
David Dollar
2012-07-11 18:30:51 -04:00
parent 06e5c52f35
commit b1d57426fb
+3 -4
View File
@@ -31,7 +31,7 @@ class Foreman::Engine::CLI < Foreman::Engine
def color?
return true if @@color_force
return true if Foreman.windows?
return false if Foreman.windows?
return false unless self.respond_to?(:isatty)
self.isatty && ENV["TERM"]
end
@@ -49,9 +49,8 @@ class Foreman::Engine::CLI < Foreman::Engine
def startup
@colors = map_colors
proctitle "foreman: master"
require "win32console" if Foreman.windows?
Color.enable($stdout, options[:color]) unless $stdout.respond_to?(:color?)
proctitle "foreman: master" unless Foreman.windows?
Color.enable($stdout, options[:color])
end
def output(name, data)