Commit c49cf6b1 authored by Colin Shea's avatar Colin Shea

Whoops, got a little too zealous with the style changes

parent f8431022
......@@ -28,7 +28,7 @@ class ZoneGenerator
# Rewrite email address
if (email = @soa[:email]).include?('@')
@soa[:email] = email.sub('@','.') << '.'
@soa[:email] = email.sub('@', '.') << '.'
end
end
......@@ -58,7 +58,7 @@ class ZoneGenerator
f.puts "zone \"#{domain}\" IN { type master; file \"#{@config['zones_dir']}/#{domain}.zone\"; };"
end
f.puts '\n# vim: set ft=named:'
f.puts "\n# vim: set ft=named:"
end
end
......@@ -98,6 +98,6 @@ class ZoneGenerator
# Write new zonefile
output_file_path = "#{@tmp_zones}/#{domain}.zone"
FileUtils.mkdir_p File.dirname(output_file_path)
File.open(output_file_path, 'w'){|f| f.write new_output }
File.open(output_file_path, 'w') { |f| f.write new_output }
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment