Re-namespace messages for systems to the vagrant.guest

This commit is contained in:
Mitchell Hashimoto 2011-12-15 21:07:43 -08:00
parent 1fcca71ce9
commit 7157bd9cdb
6 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@ module Vagrant
# changes will be noted on release notes.**
class Base
class BaseError < Errors::VagrantError
error_namespace("vagrant.systems.base")
error_namespace("vagrant.guest.base")
end
include Vagrant::Util

View File

@ -20,11 +20,11 @@ module Vagrant
# Here for whenever it may be used.
class FreeBSDError < Errors::VagrantError
error_namespace("vagrant.systems.freebsd")
error_namespace("vagrant.guest.freebsd")
end
def halt
vm.env.ui.info I18n.t("vagrant.systems.freebsd.attempting_halt")
vm.env.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.systems.linux.attempting_halt")
vm.env.ui.info I18n.t("vagrant.guest.linux.attempting_halt")
vm.ssh.execute do |ssh|
ssh.exec!("sudo shutdown -h now")
end

View File

@ -2,7 +2,7 @@ module Vagrant
module Guest
class Linux < Vagrant::Guest::Base
class LinuxError < Errors::VagrantError
error_namespace("vagrant.systems.linux")
error_namespace("vagrant.guest.linux")
end
end
end

View File

@ -25,7 +25,7 @@ module Vagrant
# Here for whenever it may be used.
class SolarisError < Errors::VagrantError
error_namespace("vagrant.systems.solaris")
error_namespace("vagrant.guest.solaris")
end
def prepare_host_only_network(net_options=nil)
@ -61,7 +61,7 @@ module Vagrant
#
# does not exist in /etc/user_attr. TODO
def halt
vm.env.ui.info I18n.t("vagrant.systems.solaris.attempting_halt")
vm.env.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),

View File

@ -537,7 +537,7 @@ en:
path_invalid: "`path` for shell provisioner does not exist on the host system: %{path}"
upload_path_not_set: "`upload_path` must be set for the shell provisioner."
systems:
guest:
base:
unsupported_host_only: |-
Host only networking is very distro-specific. Vagrant has support for many