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.
- checksums.yaml +4 -4
- data/lib/apollo.rb +11 -11
- data/lib/apollo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de86c4160c1878e13b0b2f92adc85c690de01f69
|
4
|
+
data.tar.gz: 99a9c0747e0d6a3da2b18b23b884245108eefba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/apollo/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|