vagrant-config_builder 0.13.0 → 0.14.0

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.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZjEwNDk3M2NkM2E5NTgxYTZjMDYxMTM1N2RmNTQ0OThlMTk0N2ZmZQ==
5
+ data.tar.gz: !binary |-
6
+ NWNiOTliNWQ5OGY0MTVlNjgxMDhhNDA5ZTg4OWU3NzlkZjE3YmNmYg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ YzNhNjdhYTcxZDE2NjY1MDQwZDcwZmYwZWZmN2I1NmFhOGJhM2Q1NjFkZWUz
10
+ OWEwNjRkYTkyMDA3ZGVkZDJiODUxNjJmNGIzYTk2YWRhZDA2NjZhNTFkNTVh
11
+ ZWM1YmYzYjc3YzQ1N2Q1ZmM2YzQ4MjdiYjFiZjA4ZGZjYTgzM2I=
12
+ data.tar.gz: !binary |-
13
+ ZTdhNmNlNjAzOTY3ZTc4NDg5ZTMwYjhmNGFmYzkwNDA5ZDYwMjI0MDdiZmY3
14
+ NWU3MWFlNDJkMmE3ZTk2OWQ3NDU0N2QyODI4N2FiOTQ3NmZhYjE5YWM4ODI1
15
+ NzYxMTEwMzJjZmUyMmQxOWFhOTMyOWIzZTNjZmJhYTNiYzMyOGM=
data/CHANGELOG CHANGED
@@ -1,6 +1,17 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 0.14.0
5
+ ------
6
+
7
+ 2015-05-12
8
+
9
+ This is a backwards compatible feature release
10
+
11
+ * (GH-35) Support for type arg in synced_folder parameter
12
+
13
+ * (GH-38) Add autostart capability to the vm model
14
+
4
15
  0.13.0
5
16
  ------
6
17
 
@@ -24,6 +24,10 @@ class ConfigBuilder::Model::SyncedFolder < ConfigBuilder::Model::Base
24
24
  # @return [Boolean] If the mount point should use NFS
25
25
  def_model_attribute :nfs
26
26
 
27
+ # @!attribute [rw] type
28
+ # @return [String] The method for syncing folder to guest.
29
+ def_model_attribute :type
30
+
27
31
  def to_proc
28
32
  Proc.new do |vm_config|
29
33
  vm_config.synced_folder(attr(:host_path), attr(:guest_path), folder_opts)
@@ -37,6 +41,7 @@ class ConfigBuilder::Model::SyncedFolder < ConfigBuilder::Model::Base
37
41
  with_attr(:extra) { |val| h[:extra] = val }
38
42
  with_attr(:disabled) { |val| h[:disabled] = val }
39
43
  with_attr(:nfs) { |val| h[:nfs] = val }
44
+ with_attr(:type) { |val| h[:type] = val }
40
45
 
41
46
  h
42
47
  end
@@ -155,6 +155,12 @@ class ConfigBuilder::Model::VM < ConfigBuilder::Model::Base
155
155
  # commands to this box. Set to 'winrm' for Windows VMs.
156
156
  def_model_attribute :communicator
157
157
 
158
+ # @!attribute [rw] autostart
159
+ # @return [Boolean] If true, vagrant will start the box on "vagrant up".
160
+ # If false, vagrant must be given the box name explicitly or it will not
161
+ # start.
162
+ def_model_attribute :autostart
163
+
158
164
  def initialize
159
165
  @defaults = {
160
166
  :providers => [],
@@ -162,12 +168,13 @@ class ConfigBuilder::Model::VM < ConfigBuilder::Model::Base
162
168
  :forwarded_ports => [],
163
169
  :private_networks => [],
164
170
  :synced_folders => [],
171
+ :autostart => true,
165
172
  }
166
173
  end
167
174
 
168
175
  def to_proc
169
176
  Proc.new do |global_config|
170
- global_config.vm.define(attr(:name)) do |config|
177
+ global_config.vm.define(attr(:name), autostart: attr(:autostart)) do |config|
171
178
  vm_config = config.vm
172
179
 
173
180
  with_attr(:box) { |val| vm_config.box = val }
@@ -1,3 +1,3 @@
1
1
  module ConfigBuilder
2
- VERSION = '0.13.0'
2
+ VERSION = '0.14.0'
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-config_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
5
- prerelease:
4
+ version: 0.14.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Adrien Thebo
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-01-20 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: deep_merge
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -105,27 +100,25 @@ files:
105
100
  homepage: https://github.com/adrienthebo/vagrant-config_builder
106
101
  licenses:
107
102
  - Apache 2.0
103
+ metadata: {}
108
104
  post_install_message:
109
105
  rdoc_options: []
110
106
  require_paths:
111
107
  - lib
112
108
  required_ruby_version: !ruby/object:Gem::Requirement
113
- none: false
114
109
  requirements:
115
110
  - - ! '>='
116
111
  - !ruby/object:Gem::Version
117
112
  version: '0'
118
113
  required_rubygems_version: !ruby/object:Gem::Requirement
119
- none: false
120
114
  requirements:
121
115
  - - ! '>='
122
116
  - !ruby/object:Gem::Version
123
117
  version: '0'
124
118
  requirements: []
125
119
  rubyforge_project:
126
- rubygems_version: 1.8.23.2
120
+ rubygems_version: 2.4.6
127
121
  signing_key:
128
- specification_version: 3
122
+ specification_version: 4
129
123
  summary: Generate Vagrant configurations from arbitrary data
130
124
  test_files: []
131
- has_rdoc: true