civo 1.3.2 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4cbb2c3f22d3c32d46ca7eaf4a8210461b2e91dd6c7ebf807d918e2cf970f3d
4
- data.tar.gz: 1428b604fada656f907e5335293511b9d2fd8a77d2d4202da4e04baf99be31e5
3
+ metadata.gz: 275e26291f06744db5714a58147349aa82fa7a8581c522344b92e7d5a6c5f70f
4
+ data.tar.gz: 747d129067d3f4733e48ab26ba73d2e5caeab2d39a2e1655659c5491787c20fb
5
5
  SHA512:
6
- metadata.gz: c7fdc4794b846ea813820182067d3552dffbbb5702acd1f49718b5908b74e4c4c7560aeb97eae0273e9d322d9254a9e9b00e5d3586fcd406f05db0d3855c5c58
7
- data.tar.gz: 17c0d84b2f5a7fe5d98e93697ac65c70cbee317eaec1f541b4d9d198d33a3ec0b8483bf9826f08293627181b8a021d5c555e89a93b8ec557af3963d79741ec8f
6
+ metadata.gz: 6fab4719d476f2eff7a4dd7e434bcfda24c36bf1e4b642ea207bd8c8e5390c4d6043b256a66fb7d8c3b8b9521060ba26e7b2467f7fa4ee8e05863e5f65e88fd8
7
+ data.tar.gz: b8805e6d0aa03e97d19551019c21ee8ea2bc4da95b1ae056c22a652c75a14cbe49aec5161de297e254ad4c58a81baacd12f09e6c30a74b7e6af1e5fc97aa2d81
@@ -0,0 +1,10 @@
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
+ end
@@ -9,4 +9,6 @@ module Civo
9
9
  "civo/ssh_key"
10
10
  end
11
11
  end
12
+
13
+ class SSHKey < SshKey ; end
12
14
  end
data/lib/civo.rb CHANGED
@@ -14,6 +14,7 @@ require_relative "../app/models/civo/action"
14
14
  require_relative "../app/models/civo/audit_log"
15
15
  require_relative "../app/models/civo/blueprint"
16
16
  require_relative "../app/models/civo/charge"
17
+ require_relative "../app/models/civo/disk_image"
17
18
  require_relative "../app/models/civo/dns_domain"
18
19
  require_relative "../app/models/civo/dns_record"
19
20
  require_relative "../app/models/civo/firewall"
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.3.2"
2
+ VERSION = "1.4.2"
3
3
  end
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.3.2
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-02 00:00:00.000000000 Z
11
+ date: 2021-02-23 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.0.6
133
+ rubygems_version: 3.1.2
133
134
  signing_key:
134
135
  specification_version: 4
135
136
  summary: Civo CLI AND API