Default cwd to pwd for environment

This commit is contained in:
Mitchell Hashimoto 2010-09-03 09:42:05 -07:00
parent 0a8540996c
commit 57506c8c00
1 changed files with 3 additions and 1 deletions

View File

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