civo 0.7.5 → 0.7.6
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 +5 -1
- data/lib/civo/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: ec54c3a1ad98314cff7ab3adae4edda709ba6def
|
4
|
+
data.tar.gz: 94e1bf30c7820ea0adf757dc1fafeb347f43ad22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 476f43d6f04058bdc851298c5a160682df7bbb9a1d87551479f1308cd9cf0e89b8900aa12063c00b32acb3e1bc4dce15da7a85e984b3d1596513843a39df99e0
|
7
|
+
data.tar.gz: fbbdcc6332fba6ad3eb9d0cf654603f70faaf9863e89c6fe06fad41a03fbfe06fff2d90fb1df253b829798d0956418ea31bd10473ecc2d25c67c836e430c77b6
|
data/app/models/civo/instance.rb
CHANGED
@@ -15,7 +15,11 @@ module Civo
|
|
15
15
|
put :start, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/start", requires: [:id]
|
16
16
|
put :upgrade, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/resize", requires: [:size, :id]
|
17
17
|
put :restore, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/restore", requires: [:snapshot, :id]
|
18
|
-
|
18
|
+
if ENV["CIVO_API_VERSION"] == "2"
|
19
|
+
put :firewall, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/firewall", requires: [:firewall_id, :id]
|
20
|
+
else
|
21
|
+
put :firewall, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/firewall", requires: [:name, :id]
|
22
|
+
end
|
19
23
|
|
20
24
|
def nice_ip_addresses
|
21
25
|
@ip_addresses ||= (self._attributes[:ip_addresses].items rescue []).map do |ip|
|
data/lib/civo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: civo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|