knife-dns-update 0.0.2 → 0.0.3

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
- ZTFjMzQ5NzQ0NWNhMzM2NDhhOTk3NWRhYjdjMDcxNmVkMmEyODk2MQ==
4
+ ODRiNjMyOGI2ZmM3YTQxN2I3ZTgxODQxMjcyM2Y2Yzc0MzVkYzhhMg==
5
5
  data.tar.gz: !binary |-
6
- MWZiYmZlYjU0MmNjZGFmZTYyZTRhYmY0Mjc0ZWNlNDUzZmJiZGY2ZQ==
6
+ MjNjYTdiNzg5ZDA5ZGVlNWVjMDFiYjA1ZjI0YzhhZjkyOGM5NjcxNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2JkYmM3ZDQ2YzgzZjBlYjczOGQ2OTY5ODNkODliZTc0MjJmOGQzYTYzMDg3
10
- MWFiYzQ1ZjZmMTIyYTdjMGRkNWY3ZjVlMDBjYmI0OGRiODJiODMwMzQ2NDVh
11
- NTc3MjhkNWY3NDIyZDY2ZTk3NWE1ZWRhZDAzMzg5MzI0ZWE2ZDU=
9
+ ZWJkOWNhN2NmNDc2YTJhNzhjMjNiYTRlOTFkYTY0MjhiZjRhZGYyNzMzN2Ux
10
+ NjJhOThhMjg1MmVlODhmZjYxYzE1OWJlN2YxMWM4NzFlNTUxZmUwMDIwOTMy
11
+ N2ViYWU4YWUxODAzNjFlOWUxMjliMTc0MzhiNzI1ZTM3YjA4YzE=
12
12
  data.tar.gz: !binary |-
13
- NWM0YTQ2N2Q4ZDJlNmNiMDEwZWE0YTU0YjZkMGUzZDlmNWQ4ZWY4MDM3NTE5
14
- OTUwNzI0ZTUzOTJmODk3YmNhYjVjYzlkZTE1ZGQ1MDJkYTZiMDFlZDM5YmNk
15
- N2M5MjQ1NjgxM2U5NmM1MTNhZjhhNTgzMzUxMjc3MDJjMmRkY2Y=
13
+ NGJkMzI3MzliOTgzZWY3MzAwMDFhM2M5NDVkNDAyMjk0NjE5MDQzNjM4ZTY1
14
+ ZjEzYzA1MWI3MzM1ZTAyMjY3YjkzNGQ1OWQ1ZjAzMWQxMTNjYTg1YTc4ZjQx
15
+ ZDI5ZjVjZDgyYzk5ZTlkNmU4Nzc2YzI0MGFlYzcyNzMxNWViZjU=
@@ -1,6 +1,10 @@
1
1
  Changes
2
2
  =======
3
3
 
4
+ 0.0.3
5
+ -----
6
+ * Correctly handle subdomain
7
+
4
8
  0.0.2
5
9
  -----
6
10
  * Fix configuration
@@ -100,7 +100,7 @@ module KnifeDnsUpdate
100
100
  ui.info("Looking at: #{rec.name} IN #{rec.type} #{rec.value}") if config[:verbosity] >= 3
101
101
 
102
102
  if cfg.subdomain && rec.name !~ /#{Regexp.quote(cfg.subdomain)}\.#{Regexp.quote(cfg.zone)}\.?$/
103
- ui.info("Not in subdomain, skipping: #{rec.name} IN #{rec.type} #{rec.value}") if config[:verbosity] >= 2
103
+ ui.info("Not in subdomain, skipping: #{rec.name} IN #{rec.type} #{rec.value}") if config[:verbosity] >= 1
104
104
  next
105
105
  end
106
106
 
@@ -37,7 +37,7 @@ module KnifeDnsUpdate
37
37
  case opt
38
38
  when /^\d+\.\d+\.\d+\.\d+$/ then opt = { :a => opt }
39
39
  when /^[a-z0-9.-]+\.$/ then opt = { :cname => opt }
40
- when /^[a-z0-9.-]+$/ then opt = { :cname => "#{opt}.#{zone}." }
40
+ when /^[a-z0-9.-]+$/ then opt = { :cname => [ opt, subdomain, zone ].compact.join('.') << '.' }
41
41
  when /^name:[a-z0-9.-]+$/ then opt = { :node => opt[5..-1] }
42
42
  when /:/ then opt = { :query => opt }
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module KnifeDnsUpdate
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-dns-update
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maciej Pasternacki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-03 00:00:00.000000000 Z
11
+ date: 2014-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef