lib/kuzushi.rb in kuzushi-0.0.38 vs lib/kuzushi.rb in kuzushi-0.0.39
- old
+ new
@@ -113,9 +113,10 @@
if service.user
file << "exec su -c '#{service.command}' #{service.user}" ## TODO add shell escaping here
else
file << "exec #{service.command}"
end
+ file.join("\n")
end
def process_services(service)
task "installing service #{service.name}" do
put_file(service_file(service), "/etc/init/#{service.name}.conf")