From fd9b7529380d41becd181fc4b4d36db221cd079c Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 11 Dec 2011 23:27:53 -0800 Subject: [PATCH] Make host class available to all actions --- lib/vagrant/environment.rb | 3 ++- templates/locales/en.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 22c723cbc..7b52b336e 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -197,9 +197,10 @@ module Vagrant def action_runner @action_runner ||= Action::Runner.new(action_registry) do |env| { - :global_config => config.global, :action_runner => action_runner, :box_collection => boxes, + :global_config => config.global, + :host => host, :root_path => root_path, :tmp_path => tmp_path, :ui => @ui diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 1ecc8afe9..cfe4aed85 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -383,7 +383,7 @@ en: host_required: |- A host class is required for NFS shared folders. By default, these are auto-detected, but can be overridden with `config.vagrant.host`. - There is currently not host class loaded. + There is currently no host class loaded. no_host_network: |- NFS shared folders requires that host only networking is enabled. Please enable host only networking via `config.vm.network`.