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.
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  class Prison
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -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
- @env = Vagrant::Environment.new(env_opts.merge(:cwd => dir))
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-prison
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: