splicer-dynect 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/splicer/dynect/provider.rb +7 -6
- data/lib/splicer/dynect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmE1MzFjNjI2NWFlMzNiNmI2M2IxZDA2ZWUyYTIwZTYwNDQ2MWJlNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YTExY2RhZDg3MGU4YzM2NmRiZGNlYmNkMTU3MzY3NjA0MDQ1MjkwOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODU3NThjYjRkMWZjZjgzNjY1NTU4YjEzMDIzMDNjMDk1MTA0Yjk4M2NiZmQy
|
10
|
+
MWNmMzcyNTJkODU1YWQxN2YwMmMyMmY1MmMxMmY0NDIxMTE2NGU0M2Y2ZDcx
|
11
|
+
MDI2ZjMzZjExMWEwYmJmOGFlZTdkYTMzNzUwOGZjNDRhYWY3ZGI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzMyNzQ1MmM3ZGRlNDgyNzY1Nzc4M2M0M2NhOWY2NTk0M2JmOGRhMjZhNDcy
|
14
|
+
YTUxZDdlNDc5NzY1Zjg3MTY5MTQ2YzM4NjNiZjYyY2EyNjg0YjQ5NzY2ZGU0
|
15
|
+
ZWEyMTMwM2UwZTJiMmE0YTY4YWVkZGNiMzY1MWViMmFlMmY0ZTA=
|
@@ -11,7 +11,7 @@ module Splicer
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def create_zone(zone)
|
14
|
-
Splicer.logger.debug "[SPLICER][DYNECT]
|
14
|
+
Splicer.logger.debug "[SPLICER][DYNECT] #create_zone zone=#{zone.inspect}"
|
15
15
|
client.login
|
16
16
|
|
17
17
|
client.post "Zone/#{zone.name}", rname: "admin@#{zone.name}", ttl: zone.ttl
|
@@ -26,6 +26,7 @@ module Splicer
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def update_zone(zone)
|
29
|
+
Splicer.logger.debug "[SPLICER][DYNECT] #update_zone zone=#{zone.inspect}"
|
29
30
|
client.login
|
30
31
|
get_zone(zone)
|
31
32
|
|
@@ -39,13 +40,13 @@ module Splicer
|
|
39
40
|
end
|
40
41
|
|
41
42
|
def rewrite_zone(zone)
|
42
|
-
Splicer.logger.debug "[SPLICER][DYNECT]
|
43
|
+
Splicer.logger.debug "[SPLICER][DYNECT] #rewrite_zone zone=#{zone.inspect}"
|
43
44
|
delete_zone(zone)
|
44
45
|
create_zone(zone)
|
45
46
|
end
|
46
47
|
|
47
48
|
def delete_zone(zone)
|
48
|
-
Splicer.logger.debug "[SPLICER][DYNECT]
|
49
|
+
Splicer.logger.debug "[SPLICER][DYNECT] #delete_zone zone=#{zone.inspect}"
|
49
50
|
client.login
|
50
51
|
get_zone(zone)
|
51
52
|
client.delete "Zone/#{zone.name}"
|
@@ -54,7 +55,7 @@ module Splicer
|
|
54
55
|
end
|
55
56
|
|
56
57
|
def delete_record_in_zone(record, zone)
|
57
|
-
Splicer.logger.debug "[SPLICER][DYNECT]
|
58
|
+
Splicer.logger.debug "[SPLICER][DYNECT] #delete_record_in_zone record=#{record.inspect} zone=#{zone.inspect}"
|
58
59
|
client.login
|
59
60
|
id = find_record_id(record, zone)
|
60
61
|
return false unless id
|
@@ -67,7 +68,7 @@ module Splicer
|
|
67
68
|
end
|
68
69
|
|
69
70
|
def update_record_in_zone(record, zone)
|
70
|
-
Splicer.logger.debug "[SPLICER][DYNECT]
|
71
|
+
Splicer.logger.debug "[SPLICER][DYNECT] #update_record_in_zone record=#{record.inspect} zone=#{zone.inspect}"
|
71
72
|
client.login
|
72
73
|
update_record(record, zone)
|
73
74
|
publish_zone(zone)
|
@@ -76,7 +77,7 @@ module Splicer
|
|
76
77
|
end
|
77
78
|
|
78
79
|
def create_record_in_zone(record, zone)
|
79
|
-
Splicer.logger.debug "[SPLICER][DYNECT]
|
80
|
+
Splicer.logger.debug "[SPLICER][DYNECT] #create_record_in_zone record=#{record.inspect} zone=#{zone.inspect}"
|
80
81
|
client.login
|
81
82
|
create_record(record, zone)
|
82
83
|
publish_zone(zone)
|