Wording changes in the status command. VM => machine

This commit is contained in:
Mitchell Hashimoto 2012-12-24 10:00:28 -08:00
parent 8fe0f86dbd
commit 2cfc5986d2
2 changed files with 6 additions and 8 deletions

View File

@ -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"

View File

@ -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}