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 +4 -4
- data/app/models/civo/base.rb +1 -0
- data/app/models/civo/dns_domain.rb +12 -0
- data/app/models/civo/dns_record.rb +12 -0
- data/lib/civo/version.rb +1 -1
- data/lib/civo.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4ceaa387f91e5a931f2307fb544ec02e44296d12
|
4
|
+
data.tar.gz: 9bf43445c21dcbe609c8918fe7ff083fb2df39b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75e3cff789c4a273c48469a4ce10fa7cf116ed0e5a27165c86282e826be8a9d1bcca84db17432cb04f109bb291654263a27cab8c8294a4655d4500e20afbca49
|
7
|
+
data.tar.gz: 57b0123cf887af442ac06b8de45408afdec98fcfe2f2aefec35ec9b3fbcedb3db726a89dcaa0979c4d8fe3903d79e54828091ba4c873cc97f55ea36e324160bf
|
data/app/models/civo/base.rb
CHANGED
@@ -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
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.
|
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-
|
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
|