civo 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/civo/instance.rb +7 -1
- data/lib/civo/cli/client.rb +3 -0
- data/lib/civo/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: a71e62e2cd740dab1e47236bcdd514bc5b314904
|
4
|
+
data.tar.gz: b89b383475caa6c84854d8f60e856601f7855b1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4057d7cea1e00129e2468864c2ac26acf8c2b3613af9fe9b562fd61c0904c4f74a5bfd296bed76955e428ac481f7753f0a12b4a3211af1a0094dd98d5a2100f6
|
7
|
+
data.tar.gz: d963f127d7b567ae382330c95a1a8ae2bd225f20ea2a7c08ae26e29f6a60b1a3c6a413a9b60e2244b76e6ea6da05380289ebcccc77125ff8ccbbb75d36587335
|
data/app/models/civo/instance.rb
CHANGED
@@ -8,7 +8,13 @@ module Civo
|
|
8
8
|
put :upgrade, "/v1/instances/:id", requires: [:size, :id]
|
9
9
|
|
10
10
|
def ip_addresses
|
11
|
-
self._attributes[:ip_addresses].items rescue
|
11
|
+
@ip_addresses ||= (self._attributes[:ip_addresses].items rescue []).map do |ip|
|
12
|
+
if ip.public_ip
|
13
|
+
"#{ip.private_ip}=>#{ip.public_ip}"
|
14
|
+
else
|
15
|
+
"#{ip.private_ip}"
|
16
|
+
end
|
17
|
+
end.join(", ")
|
12
18
|
end
|
13
19
|
end
|
14
20
|
end
|
data/lib/civo/cli/client.rb
CHANGED
data/lib/civo/version.rb
CHANGED