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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a256cf92ea84f81605fc88635da7b3595598da3f
4
- data.tar.gz: 276ce59049293554ce5fc37277a32062eb62fec3
3
+ metadata.gz: f28f636b6a7e89da63a75bfc676d42c167768756
4
+ data.tar.gz: 1f14f6126b4c5dc284355df71dbc3b8344ddf54a
5
5
  SHA512:
6
- metadata.gz: 12b5b2dbba5beb7dc135734e0b81fa1d183ddae40eb0cb3ca6b5a9b92ca19cd4ed6b5173db95e2ffd8772553b112d4f822618ec61d9934f3a0dd0f1b3c74bfe2
7
- data.tar.gz: 1ab94f0de86af6d06db93fc5ba09f26576ef1e8d9887b765529971f617fa8e7fc737ae0230b8e48daf5b40909aeb08794aec2c98d7aeb2fcfcf75d63e886a4b0
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
- unless property['repo'].empty?
20
+ if property['repo'] && !property['repo'].empty?
21
21
  property['path'] = pull_project(property['repo'])
22
22
  end
23
23
 
24
- if !property['ip'].empty? && !property['hostname'].empty?
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
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Properties
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-properties
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows