vagrant-prison 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vagrant/prison/version.rb +1 -1
- data/lib/vagrant/prison.rb +10 -2
- metadata +1 -1
data/lib/vagrant/prison.rb
CHANGED
@@ -50,11 +50,18 @@ class Vagrant::Prison
|
|
50
50
|
#
|
51
51
|
# Returns the configuration associated with this prison.
|
52
52
|
#
|
53
|
-
|
54
53
|
def config
|
55
54
|
@initial_config
|
56
55
|
end
|
57
56
|
|
57
|
+
#
|
58
|
+
# Returns the options that were used to create the Vagrant::Environment if it
|
59
|
+
# has already been created.
|
60
|
+
#
|
61
|
+
def env_opts
|
62
|
+
@env_opts
|
63
|
+
end
|
64
|
+
|
58
65
|
#
|
59
66
|
# Configures a Vagrantfile.
|
60
67
|
#
|
@@ -115,7 +122,8 @@ class Vagrant::Prison
|
|
115
122
|
|
116
123
|
File.binwrite(File.join(dir, "Vagrantfile"), to_write)
|
117
124
|
|
118
|
-
@
|
125
|
+
@env_opts = env_opts.merge(:cwd => dir)
|
126
|
+
@env = Vagrant::Environment.new(@env_opts)
|
119
127
|
|
120
128
|
if @cleanup_on_exit
|
121
129
|
# clean up after garbage collection or if the system exits
|