Use proper UI with VM
This commit is contained in:
parent
4428daf344
commit
e0998b0b0f
|
@ -19,7 +19,7 @@ module Vagrant
|
|||
vm.destroy
|
||||
else
|
||||
@logger.info("Not destroying #{vm.name}, since it isn't created.")
|
||||
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created")
|
||||
vm.ui.info I18n.t("vagrant.commands.common.vm_not_created")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -24,7 +24,7 @@ module Vagrant
|
|||
end
|
||||
|
||||
def halt
|
||||
vm.env.ui.info I18n.t("vagrant.guest.freebsd.attempting_halt")
|
||||
vm.ui.info I18n.t("vagrant.guest.freebsd.attempting_halt")
|
||||
vm.ssh.execute do |ssh|
|
||||
ssh.exec!("sudo shutdown -p now")
|
||||
end
|
||||
|
|
|
@ -22,7 +22,7 @@ module Vagrant
|
|||
end
|
||||
|
||||
def halt
|
||||
vm.env.ui.info I18n.t("vagrant.guest.linux.attempting_halt")
|
||||
vm.ui.info I18n.t("vagrant.guest.linux.attempting_halt")
|
||||
vm.ssh.execute do |ssh|
|
||||
ssh.exec!("sudo shutdown -h now")
|
||||
end
|
||||
|
|
|
@ -61,7 +61,7 @@ module Vagrant
|
|||
#
|
||||
# does not exist in /etc/user_attr. TODO
|
||||
def halt
|
||||
vm.env.ui.info I18n.t("vagrant.guest.solaris.attempting_halt")
|
||||
vm.ui.info I18n.t("vagrant.guest.solaris.attempting_halt")
|
||||
vm.ssh.execute do |ssh|
|
||||
# Wait until the VM's state is actually powered off. If this doesn't
|
||||
# occur within a reasonable amount of time (15 seconds by default),
|
||||
|
|
Loading…
Reference in New Issue