vagrant-netinfo 0.0.1 → 0.0.3
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 +4 -4
- data/README.md +21 -0
- data/lib/vagrant-netinfo/command.rb +0 -1
- data/lib/vagrant-netinfo/plugin.rb +2 -1
- data/lib/vagrant-netinfo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcd46de12c5ef967bd25ad6f494c597519b3e986
|
4
|
+
data.tar.gz: b5edddbf5c610d8b726cb0f4c03f28098b1b6fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c7d38326331f0ffa9586f33e6b6681ca5e7ff4c9bd719635cf2159e6bc8d8983a817bc734af051adac24cb63a23fe24f2a8560e222c4c38bd6876a7f688c8f6
|
7
|
+
data.tar.gz: f30809d380438c6a759201778b704b8c15c1fb5db78979932c55d667df55b1b8892cf022afea8ee3829baf89a9dfc05d01f75988b55da0e67b26389704adae91
|
data/README.md
CHANGED
@@ -17,6 +17,27 @@ Shows network mapping information on a running vagrant box. In case you forgot.
|
|
17
17
|
3. Run `bundle exec vagrant up`
|
18
18
|
4. Run `bundle exec vagrant netinfo one two`
|
19
19
|
|
20
|
+
## Example
|
21
|
+
|
22
|
+
Using the Vagrantfile provided in the gem, you should get following output when both machines are up
|
23
|
+
(with some additional coloring):
|
24
|
+
|
25
|
+
```
|
26
|
+
Machine 'one' (virtualbox)
|
27
|
+
guest ip:port host ip:port protocol name
|
28
|
+
--------------------------------------------------------------
|
29
|
+
nic[1] :22 -> 127.0.0.1:2222 tcp ssh
|
30
|
+
nic[1] :80 -> 127.0.0.2:8080 tcp tcp8080
|
31
|
+
nic[1] :443 -> :8443 tcp tcp8443
|
32
|
+
nic[1] :53 -> :8053 udp udp8053
|
33
|
+
|
34
|
+
Machine 'two' (virtualbox)
|
35
|
+
guest ip:port host ip:port protocol name
|
36
|
+
--------------------------------------------------------------
|
37
|
+
nic[1] :22 -> 127.0.0.1:2201 tcp ssh
|
38
|
+
nic[1] :80 -> :2200 tcp tcp8080
|
39
|
+
```
|
40
|
+
|
20
41
|
## Contributing
|
21
42
|
|
22
43
|
1. Fork it ( https://github.com/vStone/vagrant-netinfo )
|
@@ -5,7 +5,8 @@ rescue LoadError
|
|
5
5
|
end
|
6
6
|
|
7
7
|
if Vagrant::VERSION < '1.6.0'
|
8
|
-
|
8
|
+
puts 'WARNING: The Vagrant Netinfo plugin has only been tested with vagrant 1.6.x'
|
9
|
+
puts 'If it works with your version of vagrant, send me a pull request updating this version check ;)'
|
9
10
|
end
|
10
11
|
|
11
12
|
module VagrantPlugins
|