class Luban::Deployment::Packages::Nginx::Controller
Public Instance Methods
quit_process()
click to toggle source
# File lib/luban/deployment/packages/nginx/controller.rb, line 40 def quit_process if process_stopped? update_result "Skipped! Already stopped #{package_full_name}", status: :skipped return end unmonitor_process output = quit_process! if check_until { process_stopped? } update_result "Gracefully stop #{package_full_name}: [OK] #{output}" else remove_orphaned_pid_file update_result "Gracefully stop #{package_full_name}: [FAILED] #{output}", status: :failed, level: :error end end
Protected Instance Methods
config_test!()
click to toggle source
# File lib/luban/deployment/packages/nginx/controller.rb, line 59 def config_test! capture(shell_command("#{nginx_command} -t")) end
quit_process!()
click to toggle source
# File lib/luban/deployment/packages/nginx/controller.rb, line 63 def quit_process! capture(shell_command("#{nginx_command} -s quit")) end
reload_process!()
click to toggle source
# File lib/luban/deployment/packages/nginx/controller.rb, line 67 def reload_process! capture(shell_command("#{nginx_command} -s reload")) end
reopen_logs!()
click to toggle source
# File lib/luban/deployment/packages/nginx/controller.rb, line 71 def reopen_logs! capture(shell_command("#{nginx_command} -s reopen")) end