builderator 1.1.12 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd2787b799a28903d06be70670daa0b75588cda2
4
- data.tar.gz: b3b49159a33360b679ddb70ac9ce762ab225ea3e
3
+ metadata.gz: 9dac304f15c02ed411da916db117bb609db20087
4
+ data.tar.gz: 79e1a25509ad2e849be64e04e7d2e519acefc18b
5
5
  SHA512:
6
- metadata.gz: 787611d447b21d7d2e5d05365578e20f2653bc9e2c93d40f7b14f4bd2dd4c7fe860385be32ece38a9ea473cd1a8cc7b697d359a2375b30718e128c45381a863e
7
- data.tar.gz: 1a9e27f4941ec1937142920292d51c2032d243957691aebd68c99f28f740a45be89193b27aa89b70f6858269451277b21be8569b66ab20387a3be1f6e4426194
6
+ metadata.gz: f484c5d04b8ae0336de20833568414569335516c07a90b0f2627c5a9d44bd00a4e2da388f746db22e2665a13c680758f21094297d619151aa04bf0718506bed8
7
+ data.tar.gz: 5e4816a245795cbebcfecbf77bdda9a5e95e4b47a1b4b3fc7c6ff379d2cd235cfb5285fa065f0578b582924e3b2e81e1ebd1eff5a3791bda390cc0795f37a916
@@ -247,6 +247,16 @@ module Builderator
247
247
  attribute :memory
248
248
  end
249
249
 
250
+ collection :port do
251
+ attribute :host
252
+ attribute :guest
253
+ end
254
+
255
+ collection :sync do
256
+ attribute :path, :relative => true
257
+ attribute :destination
258
+ end
259
+
250
260
  namespace :ec2 do
251
261
  attribute :provider
252
262
  attribute :box
@@ -38,7 +38,13 @@ Vagrant.configure('2') do |config|
38
38
  ec2.tags = <%= profile.current.vagrant.ec2.tags %>
39
39
  end
40
40
 
41
- # config.vm.network :forwarded_port, :host => 9200, :guest => 9200
41
+ <% profile.current.vagrant.port.each do |name, port| -%>
42
+ config.vm.network :forwarded_port, :host => <%= port.host %>, :guest => <%= port.guest %> # <%= name %>
43
+ <% end -%>
44
+
45
+ <% profile.current.vagrant.sync.each do |name, sync| -%>
46
+ config.vm.synced_folder "<%= sync.path %>", "<%= sync.destination %>" # <%= name %>
47
+ <% end -%>
42
48
 
43
49
  ##
44
50
  # Use the standard data directory for Chef
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: builderator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.12
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Manero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake