class Luban::Deployment::Applications::Rack::Controller
Public Instance Methods
phased_restart_process()
click to toggle source
# File lib/luban/deployment/applications/rack/controller.rb, line 28 def phased_restart_process restart_process(phased: true) end
restart_process(phased: false)
click to toggle source
# File lib/luban/deployment/applications/rack/controller.rb, line 9 def restart_process(phased: false) if process_stopped? update_result "Skipped! Already stopped. Please start #{application_full_name} normally.", status: :skipped return end unmonitor_process if monitorable? output = (phased ? phased_restart_process! : restart_process!) || 'OK' if check_until { process_started? } update_result "Restart #{service_full_name}: [OK] #{output}" monitor_process if monitorable? else remove_orphaned_pid_file update_result "Restart #{service_full_name}: [FAILED] #{output}", status: :failed, level: :error end end
Protected Instance Methods
init()
click to toggle source
Calls superclass method
Luban::Deployment::Applications::Rack::WebServer#init
# File lib/luban/deployment/applications/rack/controller.rb, line 34 def init super set_web_server_options end
phased_restart_process!()
click to toggle source
# File lib/luban/deployment/applications/rack/controller.rb, line 40 def phased_restart_process!; capture(phased_restart_command); end
restart_process!()
click to toggle source
# File lib/luban/deployment/applications/rack/controller.rb, line 39 def restart_process!; capture(restart_command); end