civo 1.5.9 → 1.5.10
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/application.rb +13 -0
- data/lib/civo/version.rb +1 -1
- data/lib/civo.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f319ccf87c742e7fc50e6c0f644a0aa4a95f8d28b183c84beb68c689a36bbd76
|
4
|
+
data.tar.gz: b114272b6b4509e9d55031b7702e3975790c6e36c495c9edab6758bf6c614164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ba54c1e9e018ac1cfe61346888e1b4224632d8f9fba204acccbd3128779f7f6f1b8a398bb3dbbf7d5351e841a551bdf7bcf96b7d81e32cdfbdffde9d1148775
|
7
|
+
data.tar.gz: 875dd2fc96d6d139de761e0c0fac357a26cf6bb353ffbd8fb884c09566317cda257af3304f2161c2773dc29d4783f97455d6c76cfed46c812bf559b7648f9263
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Civo
|
2
|
+
class Application < Base
|
3
|
+
get :all, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications"
|
4
|
+
get :find, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", requires: [:id]
|
5
|
+
post :create, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications", requires: [:name, :region, :network_id, :size, :ssh_key_ids]
|
6
|
+
put :update, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", request_body_type: :json
|
7
|
+
delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "2"}/applications/:id", requires: [:id]
|
8
|
+
|
9
|
+
def to_partial_path
|
10
|
+
"civo/application"
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/civo/version.rb
CHANGED
data/lib/civo.rb
CHANGED
@@ -11,6 +11,7 @@ CIVO_ENGINE_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../")
|
|
11
11
|
require_relative "../app/models/civo/base"
|
12
12
|
require_relative "../app/models/civo/account"
|
13
13
|
require_relative "../app/models/civo/action"
|
14
|
+
require_relative "../app/models/civo/application"
|
14
15
|
require_relative "../app/models/civo/audit_log"
|
15
16
|
require_relative "../app/models/civo/blueprint"
|
16
17
|
require_relative "../app/models/civo/charge"
|
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.5.
|
4
|
+
version: 1.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Jeffries
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flexirest
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- Rakefile
|
78
78
|
- app/models/civo/account.rb
|
79
79
|
- app/models/civo/action.rb
|
80
|
+
- app/models/civo/application.rb
|
80
81
|
- app/models/civo/audit_log.rb
|
81
82
|
- app/models/civo/base.rb
|
82
83
|
- app/models/civo/blueprint.rb
|