Default cwd to pwd for environment
This commit is contained in:
parent
0a8540996c
commit
57506c8c00
|
@ -47,9 +47,11 @@ module Vagrant
|
||||||
:parent => nil,
|
:parent => nil,
|
||||||
:vm_name => nil,
|
:vm_name => nil,
|
||||||
:vm => nil,
|
:vm => nil,
|
||||||
:cwd => Dir.pwd
|
:cwd => nil,
|
||||||
}.merge(opts || {})
|
}.merge(opts || {})
|
||||||
|
|
||||||
|
opts[:cwd] ||= Dir.pwd
|
||||||
|
|
||||||
opts.each do |key, value|
|
opts.each do |key, value|
|
||||||
instance_variable_set("@#{key}".to_sym, opts[key])
|
instance_variable_set("@#{key}".to_sym, opts[key])
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue