civo 0.7.7 → 0.7.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/civo/instance.rb +1 -1
- data/app/models/civo/quota.rb +3 -0
- data/lib/civo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 190c7b406c77b68fce0c188909d4ccec3a6a2d90
|
4
|
+
data.tar.gz: c2ee469fbd2b09c88cd14cddd405ad2208e10ea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7635c49a91c00fff01d9a033037abf8fc3b4104a6580d75c2111be933bd57f501843e754b3e503b6a81e21ba039708a7859f3db2f738a4132df2ea57a953a5f2
|
7
|
+
data.tar.gz: 5c9a9728ef6a1d3d32478ea0c988ea1fb3e03139a09e82e37d29d621c2f8b755fb6aebd8f89f50db4e92729a0ab798d1401cf50ec1ba29d731c2d6a3c07c5677
|
data/app/models/civo/instance.rb
CHANGED
@@ -4,7 +4,7 @@ module Civo
|
|
4
4
|
get :high_cpu, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/high_cpu"
|
5
5
|
get :find, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id", requires: [:id]
|
6
6
|
post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances", requires: [:hostname, :size, :region],
|
7
|
-
defaults: {public_ip: true, template: "ubuntu-14.04", initial_user: "civo"}
|
7
|
+
defaults: {public_ip: true, template: "ubuntu-14.04", initial_user: "civo"}
|
8
8
|
put :tags, "/v2/instances/:id/tags", requires: [:tags]
|
9
9
|
put :rename, "/v2/instances/:id", requires: [:name]
|
10
10
|
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id", requires: [:id]
|
data/app/models/civo/quota.rb
CHANGED
@@ -2,6 +2,9 @@ module Civo
|
|
2
2
|
class Quota < Base
|
3
3
|
get :current, "/v#{ENV["CIVO_API_VERSION"] || "1"}/quota"
|
4
4
|
put :update, "/v#{ENV["CIVO_API_VERSION"] || "1"}/quota/:name", requires: [:name]
|
5
|
+
if ENV["CIVO_API_VERSION"] == "2"
|
6
|
+
get :all, "/v2/quotas"
|
7
|
+
end
|
5
8
|
|
6
9
|
def to_partial_path
|
7
10
|
"civo/quota"
|
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.8
|
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-12-
|
11
|
+
date: 2016-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
version: '0'
|
120
120
|
requirements: []
|
121
121
|
rubyforge_project:
|
122
|
-
rubygems_version: 2.5.
|
122
|
+
rubygems_version: 2.5.2
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Civo CLI AND API
|