Use proper UI with VM

This commit is contained in:
Mitchell Hashimoto 2011-12-26 18:14:09 -08:00
parent 4428daf344
commit e0998b0b0f
4 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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

View File

@ -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),