civo 0.8.5 → 0.9.0

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
  SHA1:
3
- metadata.gz: 759cacf9b3b0eb8f53755605610f40c1baf3acb8
4
- data.tar.gz: 0a01b421b1494b4937515d07aadb25e1e2442c58
3
+ metadata.gz: 4ceaa387f91e5a931f2307fb544ec02e44296d12
4
+ data.tar.gz: 9bf43445c21dcbe609c8918fe7ff083fb2df39b4
5
5
  SHA512:
6
- metadata.gz: eacf9339f65f502812e54b0c2805905e1a70ac365143ac7a146517d70667019810fe9a48b48aa1c26769db0faf2b64f699bcea53c23b81e75e45fd395319e71f
7
- data.tar.gz: 3346611fcae3e189f817ee14b36b5c1b688e12f792c4a46b479ae9207b70680e7b6486f7d9e121f3db7e3de3a044067ffbfa98a46f061b857d5150076cc9fe55
6
+ metadata.gz: 75e3cff789c4a273c48469a4ce10fa7cf116ed0e5a27165c86282e826be8a9d1bcca84db17432cb04f109bb291654263a27cab8c8294a4655d4500e20afbca49
7
+ data.tar.gz: 57b0123cf887af442ac06b8de45408afdec98fcfe2f2aefec35ec9b3fbcedb3db726a89dcaa0979c4d8fe3903d79e54828091ba4c873cc97f55ea36e324160bf
@@ -1,5 +1,6 @@
1
1
  module Civo
2
2
  class Base < ::Flexirest::Base
3
+ verbose!
3
4
  before_request :authorization_token
4
5
  before_request :administration_set_user
5
6
 
@@ -0,0 +1,12 @@
1
+ module Civo
2
+ class DnsDomain < Base
3
+ get :all, "/v2/dns"
4
+ post :create, "/v2/dns", required: [:name]
5
+ put :update, "/v2/dns/:id"
6
+ delete :remove, "/v2/dns/:id", required: [:id]
7
+
8
+ def to_partial_path
9
+ "civo/dns_domain"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module Civo
2
+ class DnsRecord < Base
3
+ get :all, "/v2/dns/:domain_id/records"
4
+ post :create, "/v2/dns/:domain_id/records", required: [:name, :value, :type]
5
+ put :update, "/v2/dns/:domain_id/records/:id", required: [:name, :value, :type]
6
+ delete :remove, "/v2/dns/:domain_id/records/:id", required: [:id]
7
+
8
+ def to_partial_path
9
+ "civo/dns_domain"
10
+ end
11
+ end
12
+ end
data/lib/civo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Civo
2
- VERSION = "0.8.5"
2
+ VERSION = "0.9.0"
3
3
  end
data/lib/civo.rb CHANGED
@@ -18,6 +18,8 @@ module Civo
18
18
  autoload :Snapshot, "#{CIVO_ENGINE_ROOT}/app/models/civo/snapshot"
19
19
  autoload :Firewall, "#{CIVO_ENGINE_ROOT}/app/models/civo/firewall"
20
20
  autoload :FirewallRule, "#{CIVO_ENGINE_ROOT}/app/models/civo/firewall_rule"
21
+ autoload :DnsDomain, "#{CIVO_ENGINE_ROOT}/app/models/civo/dns_domain"
22
+ autoload :DnsRecord, "#{CIVO_ENGINE_ROOT}/app/models/civo/dns_record"
21
23
  autoload :Instance, "#{CIVO_ENGINE_ROOT}/app/models/civo/instance"
22
24
  autoload :Ip, "#{CIVO_ENGINE_ROOT}/app/models/civo/ip"
23
25
  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.8.5
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Jeffries
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flexirest
@@ -80,6 +80,8 @@ files:
80
80
  - app/models/civo/audit_log.rb
81
81
  - app/models/civo/base.rb
82
82
  - app/models/civo/charge.rb
83
+ - app/models/civo/dns_domain.rb
84
+ - app/models/civo/dns_record.rb
83
85
  - app/models/civo/firewall.rb
84
86
  - app/models/civo/firewall_rule.rb
85
87
  - app/models/civo/instance.rb