apollo-tools 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apollo.rb +11 -11
  3. data/lib/apollo/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b074ab600a109dff4341a4f9cbc7aa03c9e251b
4
- data.tar.gz: c74514f110e6797c2a9a95474c21974df4f0baf2
3
+ metadata.gz: de86c4160c1878e13b0b2f92adc85c690de01f69
4
+ data.tar.gz: 99a9c0747e0d6a3da2b18b23b884245108eefba1
5
5
  SHA512:
6
- metadata.gz: 5a6fca59e1ac81ac37387095093f951aa010a91c309ae5fa090256daeee92530053d191448731aab53c3108abe722983151b01bde7910a1edcd9e3b33116133f
7
- data.tar.gz: 3343645d3f7e6c92ba659de15dfeaf14247169254a83ac306cdf9976c61d5274cf15dd8401d721f4abecd0d3eb756da0139d7122a13e6114bfbb8e3cb00aa12f
6
+ metadata.gz: 884df5e67cac47c5b03154c4f559bbaebdee889352b5bb9de94d3706e600ba3b5aa39cce678f59c327f3a3331316eb1398f495fc6f26cbbdd989f4901c153a5b
7
+ data.tar.gz: 01bf9ff656c94c9ed207abe1944d9df56f8dcde06874cda384c5a8ec4ecbc57aa9d76b16189e3742894b0116e96ade8b50a7bcad9062d9aa05b96c5a6659adbc
data/lib/apollo.rb CHANGED
@@ -136,6 +136,17 @@ module Apollo
136
136
  end
137
137
  end
138
138
 
139
+ # Gets the specified host's proper addressing
140
+ # @param host [Hash] The host that we want to address
141
+ # @return [String] The address to connect to the host on
142
+ def address(host)
143
+ unless host['ip'].nil?
144
+ host['ip']
145
+ else
146
+ host['hostname']
147
+ end
148
+ end
149
+
139
150
  private
140
151
 
141
152
  # Parses the inventory that gets read off of disk. It converts the keys to symbols.
@@ -151,16 +162,5 @@ module Apollo
151
162
  end
152
163
  list
153
164
  end
154
-
155
- # Gets the specified host's proper addressing
156
- # @param host [Hash] The host that we want to address
157
- # @return [String] The address to connect to the host on
158
- def address(host)
159
- unless host['ip'].nil?
160
- host['ip']
161
- else
162
- host['hostname']
163
- end
164
- end
165
165
  end
166
166
  end
@@ -1,3 +1,3 @@
1
1
  module Apollo
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apollo-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Tobolaski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-04-01 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler