vagrant-multi-hostsupdater 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54badcf5143d34a0b9263f42716841c79a28d118
|
4
|
+
data.tar.gz: 517850ef8113a6eb5b13df709c0ec1f30525d267
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d876ea7ae5b7b5a0ed14c1ef3d03181ec763c544007c67f3f66ac31b697ee576f12e636278a47a92638935d4350984775b68b9987b207f9ace65ede266d44fa
|
7
|
+
data.tar.gz: 3c131918813217828add4b93f1cb7768c6f971817396720bb8f8c01076bf751b7c9ab7e83f63c0f45d3a4fd1e6f5a349db4d067e99c8ae0eebf6261aacb8e71b
|
data/README.md
CHANGED
@@ -6,6 +6,8 @@ On **up**, **resume** and **reload** commands, it tries to add the information,
|
|
6
6
|
|
7
7
|
On **halt** and **destroy**, those entries will be removed again.
|
8
8
|
|
9
|
+
[![Gem Version](https://badge.fury.io/rb/vagrant-multi-hostsupdater.svg)](http://badge.fury.io/rb/vagrant-multi-hostsupdater)
|
10
|
+
|
9
11
|
## Installation
|
10
12
|
|
11
13
|
$ vagrant plugin install vagrant-multi-hostsupdater
|
@@ -20,8 +20,8 @@ module VagrantPlugins
|
|
20
20
|
hostnames = []
|
21
21
|
if @machine.config.multihostsupdater.aliases.is_a?(Hash)
|
22
22
|
hostnames = @machine.config.multihostsupdater.aliases[ip] || hostnames
|
23
|
-
|
24
|
-
hostnames = Array(@machine.config.vm.hostname)
|
23
|
+
elsif @machine.config.multihostsupdater.aliases.is_a?(Array)
|
24
|
+
hostnames = Array(@machine.config.vm.hostname) if !@machine.config.vm.hostname.nil?
|
25
25
|
hostnames.concat(@machine.config.multihostsupdater.aliases)
|
26
26
|
end
|
27
27
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-multi-hostsupdater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Fellows
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|