From 57506c8c00ee0b3b8a4a9e274a2a54105f2ce9c2 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 3 Sep 2010 09:42:05 -0700 Subject: [PATCH] Default cwd to pwd for environment --- lib/vagrant/environment.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index d364742cc..56fe83380 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -47,9 +47,11 @@ module Vagrant :parent => nil, :vm_name => nil, :vm => nil, - :cwd => Dir.pwd + :cwd => nil, }.merge(opts || {}) + opts[:cwd] ||= Dir.pwd + opts.each do |key, value| instance_variable_set("@#{key}".to_sym, opts[key]) end