elasticdns 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/elasticdns.gemspec +1 -1
- data/lib/elasticdns.rb +13 -3
- metadata +1 -1
data/elasticdns.gemspec
CHANGED
data/lib/elasticdns.rb
CHANGED
@@ -62,18 +62,28 @@ module Elasticdns
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def bind_checkconf
|
65
|
-
|
65
|
+
unless system("#{@config[:bind9_checkconf_path]} #{@config[:bind9_named_conf_file]}")
|
66
|
+
puts "Bind checkconf failed"
|
67
|
+
return false
|
68
|
+
else
|
69
|
+
return true
|
70
|
+
end
|
66
71
|
end
|
67
72
|
|
68
73
|
def bind_checkzone
|
69
74
|
@config[:bind9_zone_files].each do |zone|
|
70
|
-
|
75
|
+
unless system("#{@config[:bind9_checkzone_path]} #{zone}")
|
76
|
+
puts "Bind checkzone failed"
|
77
|
+
return false
|
78
|
+
else
|
79
|
+
return true
|
80
|
+
end
|
71
81
|
end
|
72
82
|
end
|
73
83
|
|
74
84
|
def bind_init_cmd
|
75
85
|
if bind_checkconf && bind_checkzone
|
76
|
-
|
86
|
+
system("#{@config[:bind9_init_cmd]}")
|
77
87
|
end
|
78
88
|
end
|
79
89
|
|