vagrant-ip-show 0.0.1 → 0.0.2

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: 7abca7f888d68d7392ed0cae9ae7bccad280dec3
4
- data.tar.gz: d8eb34ac7491206564ace2ed31bd18c247d3f3f6
3
+ metadata.gz: f26daa34c05af28f1049fcfaa4f54182c14ee0bd
4
+ data.tar.gz: 8789099dcfef7e4483fbfe29b8c7ad253c58f344
5
5
  SHA512:
6
- metadata.gz: 0c98efe4df08c160b962eda27a5849ef9b95939c53d0b21afef9bfc8ed0c1d4baf9daf1a0e42eebc4a56ac90808d072986da0a81ed1c3119107c3458d0e67c91
7
- data.tar.gz: e8fab3403ff54922e92604c538b3c47df41e853f301a5886d7ba383ab053fb29b68b43bfd48692d925e8da704655e53b194e57cef43e94293bb23d4ef37b47f6
6
+ metadata.gz: b5951534d6bcfc469294e07f833a35930edcd726f1aa4a779bd80543c36f363a3f6c885fece0a6ec120dc2851170e7254a583accf80ec17c7693b254ed71768b
7
+ data.tar.gz: 185bad2495788e0701ad22bc60a36e9769861c1a88bd545e223436738c3d10f46cce303ef5a84195703d5901d18fdeac69a516c82164352cb46b7617ab640f2d
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Rogerio Prado de Jesus
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,2 +1,36 @@
1
- # vagrant-ip-show
2
- A simple vagrant plugin for listing all ip of VM networks
1
+ vagrant-ip-show [![Gem Version](https://badge.fury.io/rb/vagrant-ip-show.png)](http://badge.fury.io/rb/vagrant-ip-show)
2
+ ===============
3
+
4
+ A simple Vagrant plugin for listing all IPs of VM networks
5
+
6
+ Installation
7
+ ------------
8
+
9
+ ```bash
10
+ ➜ vagrant plugin install vagrant-ip-show
11
+ ```
12
+
13
+ Example
14
+ -------
15
+
16
+ ```bash
17
+ ➜ vagrant ip-show
18
+ 10.0.2.15
19
+ 192.168.192.168
20
+ 192.168.33.10
21
+ ```
22
+
23
+ Note on Patches/Pull Requests
24
+ -----------------------------
25
+
26
+ * Fork the project.
27
+ * Make your feature addition or bug fix.
28
+ * Commit, do not mess with Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
29
+ * Send me a pull request.
30
+
31
+ If you need help with this process: [English](http://akrabat.com/the-beginners-guide-to-contributing-to-a-github-project/) or [Portuguese](http://rogeriopradoj.com/2015/09/28/o-guia-para-iniciantes-sobre-como-contribuir-com-um-projeto-no-github/)
32
+
33
+ Copyright
34
+ ---------
35
+
36
+ Copyright (c) 2015 Rogerio Prado de Jesus. See LICENSE for details.
@@ -9,7 +9,7 @@ module Vagrant
9
9
 
10
10
  @logger.info("Getting ips of vm networks")
11
11
  ssh_opts = {extra_args: ['-q']} # make it quiet
12
- env = vm.action(:ssh_run, ssh_run_command: "ifconfig | grep 'inet addr:' | grep -v 127.0.0.1 | sed -e 's/Bcast//' | cut -d: -f2", ssh_opts: ssh_opts)
12
+ env = vm.action(:ssh_run, ssh_run_command: "/sbin/ifconfig | grep 'inet addr:' | grep -v 127.0.0.1 | sed -e 's/Bcast//' | cut -d: -f2", ssh_opts: ssh_opts)
13
13
 
14
14
  status = env[:ssh_run_exit_status] || 0
15
15
  return status
@@ -18,4 +18,4 @@ module Vagrant
18
18
  end
19
19
  end
20
20
 
21
- end
21
+ end
@@ -1,6 +1,6 @@
1
1
  # lib/vagrant-ip/version.rb
2
2
  module Vagrant
3
3
  module IpShow
4
- VERSION = '0.0.1'
4
+ VERSION = '0.0.2'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-ip-show
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rogerio Prado de Jesus
@@ -18,6 +18,7 @@ extra_rdoc_files: []
18
18
  files:
19
19
  - ".gitignore"
20
20
  - Gemfile
21
+ - LICENSE
21
22
  - README.md
22
23
  - Rakefile
23
24
  - lib/vagrant-ip-show.rb