civo 0.7.0 → 0.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 13cfee1569e6c57cb618cb2d4e60f96a1fe0e420
4
- data.tar.gz: 1ec95e383d11780794c463d49bd18347a6b04e05
3
+ metadata.gz: 6d1369aa88c5b5e77914f8fc41b9a0a004cc4ccd
4
+ data.tar.gz: 6ecf4433a151359bfadedc2919ef136b9e9b1ba3
5
5
  SHA512:
6
- metadata.gz: 649059e2615581e7339407dd173ec0458c686ab82ede2c849b99dd4f298274d17c711b38f39c22382ba9ec1fe59f586cd9ccd26bd69a80d1eb038e8dacc1f443
7
- data.tar.gz: d3311c61f0f4f6ea753189d10d7eb98ec39af3fe55a61aca92a42c534d45410bb0386b7495f69170fcbf7c9aef54dbb025b2d89148309bd8ac8c1472f5d6b285
6
+ metadata.gz: ac5184eee808e2b1b3205db72c232933ef37eff93db21b4f99ca0c8ed5ec880f8f38e81ca4115de4b403b6edb8cf8aa26d96dec3e9a18e556b1ea59b6911f402
7
+ data.tar.gz: a3aab6d2a4bb21debedb3e6b010b36022a4f90acfce2b574e593aa9df38086b038c05712343ae0c93cc59fad8cf013d87a19353cf1edb7abcbbaecc2fd1fb033
@@ -6,5 +6,9 @@ module Civo
6
6
  put :reset, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts/:name", requires: [:name]
7
7
  put :save, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts"
8
8
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/accounts/:name", requires: [:name]
9
+
10
+ def to_partial_path
11
+ "civo/account"
12
+ end
9
13
  end
10
14
  end
@@ -2,5 +2,9 @@ module Civo
2
2
  class Action < Base
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/actions"
4
4
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/actions"
5
+
6
+ def to_partial_path
7
+ "civo/action"
8
+ end
5
9
  end
6
10
  end
@@ -2,5 +2,9 @@ module Civo
2
2
  class AuditLog < Base
3
3
  get :global, "/v#{ENV["CIVO_API_VERSION"] || "1"}/auditlogs"
4
4
  get :instance, "/v#{ENV["CIVO_API_VERSION"] || "1"}/auditlogs/:id"
5
+
6
+ def to_partial_path
7
+ "civo/audit_log"
8
+ end
5
9
  end
6
10
  end
@@ -1,5 +1,9 @@
1
1
  module Civo
2
2
  class Charge < Base
3
3
  get :for, "/v#{ENV["CIVO_API_VERSION"] || "1"}/charges"
4
+
5
+ def to_partial_path
6
+ "civo/charge"
7
+ end
4
8
  end
5
9
  end
@@ -6,5 +6,9 @@ module Civo
6
6
  if ENV["CIVO_API_VERSION"] == "2"
7
7
  put :update, "/v2/firewalls/:id"
8
8
  end
9
+
10
+ def to_partial_path
11
+ "civo/firewall"
12
+ end
9
13
  end
10
14
  end
@@ -11,5 +11,9 @@ module Civo
11
11
  :cidr, :direction]
12
12
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/firewalls/:name/rules/:id", required: [:name, :id]
13
13
  end
14
+
15
+ def to_partial_path
16
+ "civo/firewall_rule"
17
+ end
14
18
  end
15
19
  end
@@ -26,5 +26,9 @@ module Civo
26
26
  end
27
27
  end.join(", ")
28
28
  end
29
+
30
+ def to_partial_path
31
+ "civo/instance"
32
+ end
29
33
  end
30
34
  end
@@ -3,5 +3,9 @@ module Civo
3
3
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/ip", requires: [:id], defaults: {public: true}
4
4
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address]
5
5
  put :connect, "/v#{ENV["CIVO_API_VERSION"] || "1"}/instances/:id/ip/:ip_address", requires: [:id, :ip_address, :private_ip]
6
+
7
+ def to_partial_path
8
+ "civo/ip"
9
+ end
6
10
  end
7
11
  end
@@ -11,5 +11,9 @@ module Civo
11
11
  put :update, "/v1/networks/:name", required: [:name]
12
12
  delete :remove, "/v1/networks/:name", required: [:name]
13
13
  end
14
+
15
+ def to_partial_path
16
+ "civo/network"
17
+ end
14
18
  end
15
19
  end
@@ -2,5 +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
+
6
+ def to_partial_path
7
+ "civo/quota"
8
+ end
5
9
  end
6
10
  end
@@ -1,5 +1,9 @@
1
1
  module Civo
2
2
  class Region < Base
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/regions"
4
+
5
+ def to_partial_path
6
+ "civo/region"
7
+ end
4
8
  end
5
9
  end
@@ -2,5 +2,9 @@ module Civo
2
2
  class Size < Base
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sizes"
4
4
  put :reset, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sizes"
5
+
6
+ def to_partial_path
7
+ "civo/size"
8
+ end
5
9
  end
6
10
  end
@@ -4,5 +4,9 @@ module Civo
4
4
  get :find, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots/:name", required: [:name]
5
5
  put :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots/:name", required: [:name, :instance_id]
6
6
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/snapshots/:name", required: [:name]
7
+
8
+ def to_partial_path
9
+ "civo/snapshot"
10
+ end
7
11
  end
8
12
  end
@@ -3,5 +3,9 @@ module Civo
3
3
  get :all, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys"
4
4
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys", requires: [:name, :public_key]
5
5
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/sshkeys/:name", requires: [:name]
6
+
7
+ def to_partial_path
8
+ "civo/ssh_key"
9
+ end
6
10
  end
7
11
  end
@@ -11,5 +11,9 @@ module Civo
11
11
  get :members, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships", requires: %i{id}
12
12
  post :permissions, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships", requires: %i{email_address permissions}
13
13
  delete :member_remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/teams/:id/memberships/:user_id", requires: %i{id user_id}
14
+
15
+ def to_partial_path
16
+ "civo/team"
17
+ end
14
18
  end
15
19
  end
@@ -6,4 +6,8 @@ module Civo
6
6
  post :create, "/v#{ENV["CIVO_API_VERSION"] || "1"}/templates", required: [:name, :image_id]
7
7
  delete :remove, "/v#{ENV["CIVO_API_VERSION"] || "1"}/templates/:id"
8
8
  end
9
+
10
+ def to_partial_path
11
+ "civo/template"
12
+ end
9
13
  end
@@ -12,5 +12,9 @@ module Civo
12
12
  if ENV["CIVO_API_VERSION"] == "2"
13
13
  get :all, "/v2/users"
14
14
  end
15
+
16
+ def to_partial_path
17
+ "civo/user"
18
+ end
15
19
  end
16
20
  end
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
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: 0.7.0
4
+ version: 0.7.1
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-09-28 00:00:00.000000000 Z
11
+ date: 2016-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest