core: use default color by default (not white)
This commit is contained in:
parent
cf92d9ce00
commit
7f2fe524b3
|
@ -188,7 +188,7 @@ module Vagrant
|
|||
machines.reverse! if options[:reverse]
|
||||
|
||||
# Go through each VM and yield it!
|
||||
color_order = [:white]
|
||||
color_order = [:default]
|
||||
color_index = 0
|
||||
|
||||
machines.each do |machine|
|
||||
|
|
|
@ -323,7 +323,7 @@ module Vagrant
|
|||
# is bolded.
|
||||
bold = !!opts[:bold]
|
||||
colorseq = "#{bold ? 1 : 0 }"
|
||||
if opts[:color]
|
||||
if opts[:color] && opts[:color] != :default
|
||||
color = COLORS[opts[:color]]
|
||||
colorseq += ";#{color}"
|
||||
end
|
||||
|
|
|
@ -114,6 +114,11 @@ describe Vagrant::UI::Colored do
|
|||
subject.output("foo")
|
||||
end
|
||||
|
||||
it "doesn't use a color if default color" do
|
||||
subject.should_receive(:safe_puts).with("\033[0mfoo\033[0m", anything)
|
||||
subject.output("foo", color: :default)
|
||||
end
|
||||
|
||||
it "bolds output without color if specified" do
|
||||
subject.should_receive(:safe_puts).with("\033[1mfoo\033[0m", anything)
|
||||
subject.output("foo", bold: true)
|
||||
|
|
Loading…
Reference in New Issue