Project

General

Profile

« Previous | Next » 

Revision ecdabe95

Added by Marc Dequènes over 13 years ago

  • ID ecdabe959057281f9350bbcd0735c9639206244f

[evol] uncomplete MapMaker bot implementation (global cyborg classes, use of EventMachine with UNIX socket backend, configuration adjustments, ...) (refs #31)

View differences:

lib/cyborghood/services/dns.rb
@content = nil
@filename = @config.dns.master_zone_pattern.gsub("#ZONE#", @zone)
# TODO: should be checked at startup time
raise CyberError.new(:unrecoverable, "services/dns", "erroneous configuration: pattern is constant") if @filename == @config.dns.master_zone_pattern
# ensure we can find the needed programs (should be handled somewhere else)
ENV['PATH'] = (ENV['PATH'].split(":") + ["/sbin", "/usr/sbin", "/usr/local/sbin"]).uniq.join(":")

Also available in: Unified diff