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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjE2OTY5ZTg1OGI3ODE2ZTAwNmRiN2RiYWQwMDNiNTM4MjYxZWQ5ZA==
4
+ MmE1MzFjNjI2NWFlMzNiNmI2M2IxZDA2ZWUyYTIwZTYwNDQ2MWJlNw==
5
5
  data.tar.gz: !binary |-
6
- NWI3YTVkMTk3MWIyYTkzYjcwOTQzNjRjMjNjYjhhOWZiNjkwZTk5Mg==
6
+ YTExY2RhZDg3MGU4YzM2NmRiZGNlYmNkMTU3MzY3NjA0MDQ1MjkwOQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGQ3MzlhNWQ1OGExZDI2ZmMxZDcyMmUzNDk5N2Q4NDJjZTEzNjNlNTMwNmU4
10
- NGY5M2RmOGRlNzA2YmM1ZTY5Yjk1YTI3ODY3ZWM0NjA1MWM2ZjUyYTFiZjdi
11
- ZGQ0MmNjMWY1Mzk2MmQxODUwM2QxMThkNmZmZWFmZjAxNjFjM2M=
9
+ ODU3NThjYjRkMWZjZjgzNjY1NTU4YjEzMDIzMDNjMDk1MTA0Yjk4M2NiZmQy
10
+ MWNmMzcyNTJkODU1YWQxN2YwMmMyMmY1MmMxMmY0NDIxMTE2NGU0M2Y2ZDcx
11
+ MDI2ZjMzZjExMWEwYmJmOGFlZTdkYTMzNzUwOGZjNDRhYWY3ZGI=
12
12
  data.tar.gz: !binary |-
13
- ZGRiZDUxODdjYjMzNjNmMWU4NGJlZjhkZGY5MGFmNWYxZTMxYmVhNWE3ZWYz
14
- N2Y5NmY0M2MzODE1OWNlMDU2NTU4NjhiZGQ3ZTUzMmI1YWUzNGY5MGMwMWZm
15
- ZmM1ZTBmZWNjYTQ5YWVmYjMwYWZlMDk1OGYzYTg2ZDYwMWZiYmY=
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] creating zone: #{zone.name}"
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] rewriting zone: #{zone.name}"
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] deleting zone: #{zone.name}"
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] deleting a record in zone: #{record.type} - #{zone.name}"
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] updating a record in zone: #{record.type} - #{zone.name}"
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] creating a record in zone: #{record.type} - #{zone.name}"
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)
@@ -1,5 +1,5 @@
1
1
  module Splicer
2
2
  module Dynect
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splicer-dynect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Johnston