vagrant-properties 0.2.2 → 0.3.0

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: b757a48696801854927bf6cc9357fb17b68c8f44
4
- data.tar.gz: 5ce6f97d8ae73d3b00e1c0196d95063f045fb5c4
3
+ metadata.gz: a256cf92ea84f81605fc88635da7b3595598da3f
4
+ data.tar.gz: 276ce59049293554ce5fc37277a32062eb62fec3
5
5
  SHA512:
6
- metadata.gz: f1441b05957dc7e6de6f7a8cb1cfb6b7c8cf952d97d85c1bba2bacf34cff92f998977f562ca94706d362a50b8aa8cccbaa4ea2e8ac9dd965f1cddd1b2a571e66
7
- data.tar.gz: 6dab0e4dca301b6df39a7a625e8430da5cc6681994c3f7c89639ef5ae5734ae9d10a6c03614f23ab759dc0335e8e875ce2bae2d55b864f4001432da5590db1fb
6
+ metadata.gz: 12b5b2dbba5beb7dc135734e0b81fa1d183ddae40eb0cb3ca6b5a9b92ca19cd4ed6b5173db95e2ffd8772553b112d4f822618ec61d9934f3a0dd0f1b3c74bfe2
7
+ data.tar.gz: 1ab94f0de86af6d06db93fc5ba09f26576ef1e8d9887b765529971f617fa8e7fc737ae0230b8e48daf5b40909aeb08794aec2c98d7aeb2fcfcf75d63e886a4b0
@@ -17,8 +17,14 @@ module VagrantPlugins
17
17
 
18
18
  def build_properties
19
19
  load_properties.each_with_object({}) do |(name, property), memo|
20
- property['path'] = pull_project(property['repo'])
21
- write_to_hosts(property['ip'], property['hostname'])
20
+ unless property['repo'].empty?
21
+ property['path'] = pull_project(property['repo'])
22
+ end
23
+
24
+ if !property['ip'].empty? && !property['hostname'].empty?
25
+ write_to_hosts(property['ip'], property['hostname'])
26
+ end
27
+
22
28
  keys = property.keys.inject([]) { |m, k| m << k.to_sym }
23
29
  memo[name.to_sym] = Struct.new(*keys).new(*property.values)
24
30
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Properties
3
- VERSION = '0.2.2'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-properties
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - linyows
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 2.2.2
77
+ rubygems_version: 2.4.5
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Mnagement multiple machines.