Class: Redirus::Proxy
- Inherits:
-
Object
show all
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/redirus/proxy.rb
Instance Method Summary
collapse
Instance Method Details
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/redirus/proxy.rb', line 7
def perform(*params)
begin
perform_action(*params)
restart_nginx
rescue Errno::EACCES => e
$stderr << "Error: Cannot write to config files - continuing\n"
$stderr << "#{e}\n"
rescue Errno::ENOENT => e
$stderr << "Error: Trying to remove non existing config files - continuing\n"
$stderr << "#{e}\n"
rescue Errno::ESRCH => e
$stderr << "Warning: Nginx is dead - continuing\n"
$stderr << "#{e}\n"
end
end
|