Revision d5495a1e
Added by Marc Dequènes over 14 years ago
- ID d5495a1e3c2945e526c432f4e905cda137548869
bin/mapmaker | ||
---|---|---|
include CyborgServerInterface
|
||
|
||
export_parent_methods
|
||
unexport_method :zones
|
||
unexport_method :zones, :'[]'
|
||
|
||
def test(data)
|
||
"coucou: " + data.inspect
|
lib/cyborghood/cyborg/interface.rb | ||
---|---|---|
attr_accessor :exported_methods
|
||
attr_accessor :auto_export_public_instance_methods
|
||
|
||
def export_method(syms)
|
||
def export_method(*syms)
|
||
syms = [syms] unless syms.is_a? Array
|
||
self.exported_methods ||= []
|
||
self.exported_methods += syms.collect{|m| m.to_s }
|
||
end
|
||
|
||
def unexport_method(syms)
|
||
def unexport_method(*syms)
|
||
syms = [syms] unless syms.is_a? Array
|
||
self.exported_methods ||= []
|
||
self.exported_methods -= syms.collect{|m| m.to_s }
|
||
end
|
||
|
||
def export_parent_methods
|
||
self.export_method self.superclass.public_instance_methods(false)
|
||
self.export_method *self.superclass.public_instance_methods(false)
|
||
end
|
||
end
|
||
|
lib/cyborghood/services/dns.rb | ||
---|---|---|
Zone.new(zone)
|
||
end
|
||
|
||
def check_zone_file(check_type)
|
||
def check_config
|
||
case @config.dns.software
|
||
when 'bind'
|
||
output = []
|
||
begin
|
||
IO.popen("named-checkconf '#{@zone}' #{filename}") do |fp|
|
||
IO.popen("sudo named-checkconf") do |fp|
|
||
output << fp.gets.chomp! until fp.eof?
|
||
end
|
||
rescue
|
Also available in: Unified diff
[fix] DNS fixes