Wording changes in the status command. VM => machine
This commit is contained in:
parent
8fe0f86dbd
commit
2cfc5986d2
|
@ -4,10 +4,8 @@ module VagrantPlugins
|
||||||
module CommandStatus
|
module CommandStatus
|
||||||
class Command < Vagrant.plugin("2", :command)
|
class Command < Vagrant.plugin("2", :command)
|
||||||
def execute
|
def execute
|
||||||
options = {}
|
opts = OptionParser.new do |o|
|
||||||
|
o.banner = "Usage: vagrant status [machine-name]"
|
||||||
opts = OptionParser.new do |opts|
|
|
||||||
opts.banner = "Usage: vagrant status [vm-name]"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Parse the options
|
# Parse the options
|
||||||
|
@ -16,9 +14,9 @@ module VagrantPlugins
|
||||||
|
|
||||||
state = nil
|
state = nil
|
||||||
results = []
|
results = []
|
||||||
with_target_vms(argv) do |vm|
|
with_target_vms(argv) do |machine|
|
||||||
state = vm.state.to_s if !state
|
state = machine.state.to_s if !state
|
||||||
results << "#{vm.name.to_s.ljust(25)}#{vm.state.to_s.gsub("_", " ")}"
|
results << "#{machine.name.to_s.ljust(25)}#{machine.state.to_s.gsub("_", " ")}"
|
||||||
end
|
end
|
||||||
|
|
||||||
state = results.length == 1 ? state : "listing"
|
state = results.length == 1 ? state : "listing"
|
||||||
|
|
|
@ -336,7 +336,7 @@ en:
|
||||||
VirtualBox, moving to a new computer, etc. Please consult VirtualBox
|
VirtualBox, moving to a new computer, etc. Please consult VirtualBox
|
||||||
for how to handle this issue.
|
for how to handle this issue.
|
||||||
output: |-
|
output: |-
|
||||||
Current VM states:
|
Current machine states:
|
||||||
|
|
||||||
%{states}
|
%{states}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue