34
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/guard/rack.rb', line 34
def reload
UI.info 'Restarting Rack...'
Notifier.notify("Rack restarting on port #{options[:port]} in #{options[:environment]} environment...", title: 'Restarting Rack...', image: :pending)
if runner.restart
UI.info "Rack restarted, pid #{runner.pid}"
Notifier.notify("Rack restarted on port #{options[:port]}.", title: 'Rack restarted!', image: :success)
else
UI.info 'Rack NOT restarted, check your log files.'
Notifier.notify('Rack NOT restarted, check your log files.', title: 'Rack NOT restarted!', image: :failed)
end
end
|