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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02ec8bbb65c2883c3e080f9877a260a966de13eac15f75efe227c3267a5cc844
4
- data.tar.gz: f7f6f3be7579b4cab4b3c83e06d5ddef9184b5968af9f7db3df751199955a5c4
3
+ metadata.gz: f319ccf87c742e7fc50e6c0f644a0aa4a95f8d28b183c84beb68c689a36bbd76
4
+ data.tar.gz: b114272b6b4509e9d55031b7702e3975790c6e36c495c9edab6758bf6c614164
5
5
  SHA512:
6
- metadata.gz: 58077c5dd0755ba0588a0d8ef9afc3cb6da7bcd6a7da3c4093782789b4625a8fc0702a3c2cfa8bd91dc0bc33a41b64816f56e6e7fb7e839482a6db2715b40374
7
- data.tar.gz: 12d2373031f4a8ed05b4d23ccbb3e141844b84d532f847b8e4e4b0cd39b978971dcc07d59986ed1b37c251c4cc8b5e528e635f63ffa7ff45f8d6c2d7524db11c
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
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "1.5.9"
2
+ VERSION = "1.5.10"
3
3
  end
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.9
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-02-25 00:00:00.000000000 Z
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