vagrant-properties 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-properties/config.rb +3 -2
- data/lib/vagrant-properties/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: f28f636b6a7e89da63a75bfc676d42c167768756
|
4
|
+
data.tar.gz: 1f14f6126b4c5dc284355df71dbc3b8344ddf54a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73cbf9bf0c98a40171507b4d6c12839f4f4bb6ae0d9c356960e1935f00b98cc642a0f080673731af3a60abab96625855d006987ac37024f482686c862034bdc1
|
7
|
+
data.tar.gz: 4b9783af1a158665ec0e0591a72e190c9ba627a716e64634dedfbe2dd871658211df178587ab9b156edca8169c34294d70d416aba8cc5869501f773f3dbac362
|
@@ -17,11 +17,12 @@ module VagrantPlugins
|
|
17
17
|
|
18
18
|
def build_properties
|
19
19
|
load_properties.each_with_object({}) do |(name, property), memo|
|
20
|
-
|
20
|
+
if property['repo'] && !property['repo'].empty?
|
21
21
|
property['path'] = pull_project(property['repo'])
|
22
22
|
end
|
23
23
|
|
24
|
-
if
|
24
|
+
if property['ip'] && property['hostname'] &&
|
25
|
+
!property['ip'].empty? && !property['hostname'].empty?
|
25
26
|
write_to_hosts(property['ip'], property['hostname'])
|
26
27
|
end
|
27
28
|
|