lib/autobuild/config.rb in autobuild-1.5.56 vs lib/autobuild/config.rb in autobuild-1.5.57.rc1
- old
+ new
@@ -53,11 +53,23 @@
end
end
@console = HighLine.new
+ class << self
+ attr_writer :color
+ def color?
+ !!@color
+ end
+ end
+ @color = true
+
def self.color(*args)
- console.color(*args)
+ if color?
+ console.color(*args)
+ else
+ puts args.first
+ end
end
DEFAULT_OPTIONS = { :nice => nil,
:srcdir => Dir.pwd, :prefix => Dir.pwd, :logdir => nil,
:verbose => false, :debug => false, :do_build => true, :do_forced_build => false, :do_rebuild => false, :do_update => true,