vagrant-config_builder 0.4.0 → 0.5.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.
data/CHANGELOG CHANGED
@@ -1,6 +1,15 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 0.5.0
5
+ -----
6
+
7
+ 2013-09-18
8
+
9
+ This is a backwards compatible feature release.
10
+
11
+ * (GH-12) Add vm 'guest' platform parameter
12
+
4
13
  0.4.0
5
14
  -----
6
15
 
data/README.markdown CHANGED
@@ -31,7 +31,7 @@ for clarity.
31
31
  Vagrant.configure('2', &ConfigBuilder.load(
32
32
  :yaml,
33
33
  :yamldir,
34
- File.expand_path('config', __DIR__)
34
+ File.expand_path('../config', __FILE__)
35
35
  ))
36
36
 
37
37
  #### config/roles.yaml
@@ -126,6 +126,7 @@ class ConfigBuilder::Filter::Roles
126
126
  forwarded_ports
127
127
  private_networks
128
128
  public_networks
129
+ guest
129
130
  ]
130
131
 
131
132
  array_keys.each do |key|
@@ -66,6 +66,10 @@ class ConfigBuilder::Model::VM < ConfigBuilder::Model::Base
66
66
  # @return [String] The name of the Vagrant box to instantiate for this VM
67
67
  def_model_attribute :box
68
68
 
69
+ # @!attribute [rw] guest
70
+ # @return [String] The guest type to use for this VM
71
+ def_model_attribute :guest
72
+
69
73
  # @!attribute [rw] box_url
70
74
  # @return [String] The source URL for the Vagrant box associated with this VM
71
75
  def_model_attribute :box
@@ -95,6 +99,7 @@ class ConfigBuilder::Model::VM < ConfigBuilder::Model::Base
95
99
  vm_config.box = attr(:box) if defined? attr(:box)
96
100
  vm_config.box_url = attr(:box_url) if defined? attr(:box_url)
97
101
  vm_config.hostname = attr(:hostname) if defined? attr(:hostname)
102
+ vm_config.guest = attr(:guest) if defined? attr(:guest)
98
103
 
99
104
  eval_models(vm_config)
100
105
  end
@@ -1,3 +1,3 @@
1
1
  module ConfigBuilder
2
- VERSION = '0.4.0'
2
+ VERSION = '0.5.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-config_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
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: 2013-08-28 00:00:00.000000000 Z
12
+ date: 2013-09-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec