lib/testlab/provisioners/bind.rb in testlab-0.6.17 vs lib/testlab/provisioners/bind.rb in testlab-0.7.0
- old
+ new
@@ -90,18 +90,18 @@
end
def build_bind_db(ssh, zone, records)
bind_db_template = File.join(TestLab::Provisioner.template_dir, "bind", 'bind-db.erb')
- ssh.file(:target => "/etc/bind/db.#{zone}", :chown => "bind:bind") do |file|
+ ssh.file(:target => %(/etc/bind/db.#{zone}), :chown => "bind:bind") do |file|
file.puts(ZTK::Template.do_not_edit_notice(:message => "TestLab v#{TestLab::VERSION} BIND DB: #{zone}", :char => ';'))
file.puts(ZTK::Template.render(bind_db_template, { :zone => zone, :records => records }))
end
end
# Builds the BIND configuration
def build_bind_conf(ssh)
- ssh.file(:target => File.join("/etc/bind/named.conf"), :chown => "bind:bind") do |file|
+ ssh.file(:target => %(/etc/bind/named.conf), :chown => "bind:bind") do |file|
build_bind_main_partial(file)
build_bind_zone_partial(ssh, file)
end
end