vagrant-netinfo 0.0.1 → 0.0.3

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: 6e24b8a507995078ec593191c809ca07933c4a48
4
- data.tar.gz: c2a106148cd61d285b9ced1c606fecce7857fae4
3
+ metadata.gz: fcd46de12c5ef967bd25ad6f494c597519b3e986
4
+ data.tar.gz: b5edddbf5c610d8b726cb0f4c03f28098b1b6fc3
5
5
  SHA512:
6
- metadata.gz: 243260109502a822b6eb70bb6e364ef0de40ac0083512cdd47af2e9b838bb2cd3f2d1bf0a5f801c30f7b1adbc52eba8f7d47a3e803ca0458728b1475ebe0f5a0
7
- data.tar.gz: c762c82e43a47872274fe522343fe767c2c281782b590c8e12e16645e782239abf1db6c9e697f1b10ebd1b680e9f2c6f1c76bb6faef3420462f9b7c2cd4ed4e1
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 )
@@ -1,5 +1,4 @@
1
1
  require 'optparse'
2
- require 'awesome_print'
3
2
 
4
3
  module VagrantPlugins
5
4
  module Netinfo
@@ -5,7 +5,8 @@ rescue LoadError
5
5
  end
6
6
 
7
7
  if Vagrant::VERSION < '1.6.0'
8
- raise 'The Vagrant Netinfo plugin has only been tested with vagrant 1.6.x'
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Netinfo
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-netinfo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Vansteenkiste