vagrant-dsl 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -93,7 +93,7 @@ Note that you can use all the base DSL methods inside `vagrant_prison`.
93
93
 
94
94
  * `:dir` is a directory name that will be created, populated, and destroyed if
95
95
  `:auto_destroy` is set.
96
- * If `:auto_destroy` is set to true, as soon as the prison expires (either
96
+ * If `:auto_destroy` is set to true (the default), as soon as the prison expires (either
97
97
  through termination of the script or garbage collection) vagrant will be
98
98
  asked to destroy the VMs and the directory will be removed.
99
99
  * If `:ui_class` is supplied, you can drive the Vagrant user interface with
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module DSL
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/lib/vagrant/dsl.rb CHANGED
@@ -93,7 +93,7 @@ module Vagrant
93
93
  def_delegator :@config, :configure, :configure
94
94
 
95
95
  def initialize(args)
96
- @config = Vagrant::Prison.new(args[:dir], args[:auto_destroy])
96
+ @config = Vagrant::Prison.new(args[:dir], args.has_key?(:auto_destroy) ? args[:auto_destroy] : true)
97
97
  self.ui_class = args[:ui_class]
98
98
  @env = nil
99
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-06 00:00:00.000000000 Z
12
+ date: 2012-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: vagrant-prison