lib/itamae/resource/service.rb in itamae-1.0.0.beta3 vs lib/itamae/resource/service.rb in itamae-1.0.0.beta4
- old
+ new
@@ -22,10 +22,11 @@
run_init_script("reload")
end
private
def run_init_script(command)
- run_command("#{shell_escape(init_script_path)} #{command}")
+ # TODO: Delegate to Specinfra
+ run_command([init_script_path, command])
end
def init_script_path
"/etc/init.d/#{name}"
end