# File lib/chef/provider/deploy.rb, line 168 def restart if restart_cmd = @new_resource.restart_command if restart_cmd.kind_of?(Proc) Chef::Log.info("Restarting app with embedded recipe") recipe_eval(&restart_cmd) else Chef::Log.info("Restarting app with #{@new_resource.restart_command} in #{@new_resource.current_path}") run_command(run_options(:command => @new_resource.restart_command, :cwd => @new_resource.current_path)) end end end