vagrant-dotvm 0.11.0 → 0.12.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 206bfdec4ef49df2df73b6db5d114312e5a01bb2
4
- data.tar.gz: 3179ab6f0087f3376fc41ce32d4523aaee4ab394
3
+ metadata.gz: d7b62f83672b10c1f5c244ca3fbc4ad6e46495d0
4
+ data.tar.gz: 80d84606b9c7346020b3b6d4634dd466ee16728a
5
5
  SHA512:
6
- metadata.gz: ec20d0bdf97ccbdf3ef4519e9e236c5cc4c1b2e2c45768ea5ee542cc2f95b2d61e83ffb84c20fd3f5ace3f31f418af1f6cba4924e32f018c37a6a3918a5962f5
7
- data.tar.gz: 51b5d09388d6e202245d266c0c4644b3733439e6c8f19bcc7cf099f96a876aa948b1f81488618f2dbaaa78be57f2cc6d68d2df52e94aba038da18753b89a893f
6
+ metadata.gz: 59669ce6f5ca80e04a5d3a1615c447b3a526c80cab355dc0816de41e80b7cffbcf708c46ac7199dfcaa59133f2f742ebe0dc445299837a6a2c55153e3fa36e4c
7
+ data.tar.gz: 0839355b47428666ceb101c54b46e71f1cbf07ec87af417fed2cd5d05c6914e2c64a288f2442407ce5196d016dcb384943480fa16cf514b924c4bdc06eaf0657
data/README.md CHANGED
@@ -49,6 +49,10 @@ machines:
49
49
  - net: private_network
50
50
  ip: 192.168.56.100
51
51
  mask: 255.255.255.0
52
+ - net: forwarded_port
53
+ guest: 80
54
+ host: 1080
55
+ protocol: tcp
52
56
  authorized_keys:
53
57
  - type: file
54
58
  path: "~/.ssh/id_rsa.pub"
@@ -6,6 +6,10 @@ machines:
6
6
  - net: private_network
7
7
  ip: 192.168.56.100
8
8
  mask: 255.255.255.0
9
+ - net: forwarded_port
10
+ guest: 80
11
+ host: 1080
12
+ protocol: tcp
9
13
  authorized_keys:
10
14
  - type: file
11
15
  path: "~/.ssh/id_rsa.pub"
@@ -26,6 +26,11 @@ module VagrantPlugins
26
26
  ip: net[:ip],
27
27
  netmask: net[:mask],
28
28
  virtualbox__intnet: net[:interface]
29
+ elsif net[:net] = 'forwarded_port'
30
+ machine.vm.network net[:net],
31
+ guest: net[:guest],
32
+ host: net[:host],
33
+ protocol: net[:protocol]
29
34
  end
30
35
  end
31
36
 
@@ -4,6 +4,7 @@ module VagrantPlugins
4
4
 
5
5
  DEFAULT_NET = 'private_network'
6
6
  DEFAULT_NETMASK = '255.255.255.0'
7
+ DEFAULT_PROTOCOL = 'tcp'
7
8
 
8
9
  def initialize(vars = {})
9
10
  @vars = vars
@@ -69,6 +70,9 @@ module VagrantPlugins
69
70
  :ip => net['ip'],
70
71
  :mask => self.coalesce(net['mask'], net['netmask'], DEFAULT_NETMASK),
71
72
  :interface => net['interface'],
73
+ :guest => net['guest'],
74
+ :host => net['host'],
75
+ :protocol => self.coalesce(net['protocol'], DEFAULT_PROTOCOL),
72
76
  }
73
77
  end
74
78
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
- VERSION = "0.11.0"
3
+ VERSION = "0.12.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dotvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa