Revision 3d7bbe55
Added by Marc Dequènes almost 14 years ago
- ID 3d7bbe55cb6110cbe884ce7c45db045849a2be38
lib/cyborghood/command_runner.rb | ||
---|---|---|
end
|
||
|
||
srv_dns = Services::DNS.new(zone)
|
||
zone_content = srv_dns.read_zone
|
||
zone_content = srv_dns.read_zone
|
||
|
||
result.ok = true
|
||
result.message = _("Requested zone content attached.")
|
||
... | ... | |
srv_dns = Services::DNS.new(zone)
|
||
|
||
return if cmdline.empty?
|
||
content_ref = cmdline.shift
|
||
ref, part = Order.dereference_param(shared_parameters, content_ref)
|
||
unless part.content_type == "text/plain"
|
||
result.message = _("Attachment has wrong content-type.")
|
||
|
||
zone_data = cmdline.shift
|
||
unless zone_data.content_type == "text/plain"
|
||
result.message = _("Zone data has wrong content-type.")
|
||
return result
|
||
end
|
||
|
||
f = Tempfile.new(zone)
|
||
f.write(part.content)
|
||
f.write(zone_data.content)
|
||
f.close
|
||
logger.debug "Created temporary zone file '#{f.path}'"
|
||
|
Also available in: Unified diff
[evol] improved Order classes a lot (closes #101)