civo 1.2.9 → 1.3.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/disk_image.rb +12 -0
- data/app/models/civo/dns_domain.rb +2 -0
- data/app/models/civo/dns_record.rb +2 -0
- data/app/models/civo/ip.rb +2 -0
- data/app/models/civo/ssh_key.rb +2 -0
- data/lib/civo.rb +27 -30
- data/lib/civo/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b85f6bc21c791ff5f2f336a94a02e6b05283f7ae808dccb250c9120d9e3df3c
|
4
|
+
data.tar.gz: 922937e6ea56c51c1795e79f0116c4e336d5ab658dd472ce5685820668f0f386
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '089415e51137ad218a441c3b85ea013353ac4b8c5706f72ca7ad1308e5bc55e628fad5bcab8c8eb9c51144e311fc487bfccf23bc24f8e01deed77f3e4464d39e'
|
7
|
+
data.tar.gz: 9fa91ca102cd6eed5458d01745284363ccb27c184dfb0264c644c744e1dab79b63c2a3aaa336a0bbec73f53829001e1df17d152a7ec2a61afee76d595c3128f4
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module Civo
|
2
|
+
class DiskImage < Base
|
3
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/disk_images"
|
4
|
+
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/disk_images/:id"
|
5
|
+
|
6
|
+
def to_partial_path
|
7
|
+
"civo/disk_image"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class DiskImage < DiskImage ; end
|
12
|
+
end
|
data/app/models/civo/ip.rb
CHANGED
data/app/models/civo/ssh_key.rb
CHANGED
data/lib/civo.rb
CHANGED
@@ -8,33 +8,30 @@ ENV["CIVO_API_VERSION"] ||= "2"
|
|
8
8
|
|
9
9
|
CIVO_ENGINE_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../")
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
autoload :Volume, "#{CIVO_ENGINE_ROOT}/app/models/civo/volume"
|
39
|
-
end
|
40
|
-
end
|
11
|
+
require_relative "../app/models/civo/base"
|
12
|
+
require_relative "../app/models/civo/account"
|
13
|
+
require_relative "../app/models/civo/action"
|
14
|
+
require_relative "../app/models/civo/audit_log"
|
15
|
+
require_relative "../app/models/civo/blueprint"
|
16
|
+
require_relative "../app/models/civo/charge"
|
17
|
+
require_relative "../app/models/civo/disk_image"
|
18
|
+
require_relative "../app/models/civo/dns_domain"
|
19
|
+
require_relative "../app/models/civo/dns_record"
|
20
|
+
require_relative "../app/models/civo/firewall"
|
21
|
+
require_relative "../app/models/civo/firewall_rule"
|
22
|
+
require_relative "../app/models/civo/instance"
|
23
|
+
require_relative "../app/models/civo/kubernetes"
|
24
|
+
require_relative "../app/models/civo/ip"
|
25
|
+
require_relative "../app/models/civo/kpi"
|
26
|
+
require_relative "../app/models/civo/load_balancer"
|
27
|
+
require_relative "../app/models/civo/network"
|
28
|
+
require_relative "../app/models/civo/quota"
|
29
|
+
require_relative "../app/models/civo/region"
|
30
|
+
require_relative "../app/models/civo/size"
|
31
|
+
require_relative "../app/models/civo/snapshot"
|
32
|
+
require_relative "../app/models/civo/ssh_key"
|
33
|
+
require_relative "../app/models/civo/system"
|
34
|
+
require_relative "../app/models/civo/team"
|
35
|
+
require_relative "../app/models/civo/template"
|
36
|
+
require_relative "../app/models/civo/user"
|
37
|
+
require_relative "../app/models/civo/volume"
|
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: 1.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- app/models/civo/base.rb
|
82
82
|
- app/models/civo/blueprint.rb
|
83
83
|
- app/models/civo/charge.rb
|
84
|
+
- app/models/civo/disk_image.rb
|
84
85
|
- app/models/civo/dns_domain.rb
|
85
86
|
- app/models/civo/dns_record.rb
|
86
87
|
- app/models/civo/firewall.rb
|
@@ -129,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
130
|
- !ruby/object:Gem::Version
|
130
131
|
version: '0'
|
131
132
|
requirements: []
|
132
|
-
rubygems_version: 3.
|
133
|
+
rubygems_version: 3.1.2
|
133
134
|
signing_key:
|
134
135
|
specification_version: 4
|
135
136
|
summary: Civo CLI AND API
|