2018-10-01 17:41:17 +00:00
|
|
|
namespace :zammad do
|
|
|
|
|
|
|
|
namespace :ci do
|
|
|
|
|
|
|
|
namespace :service do
|
|
|
|
|
|
|
|
namespace :websocket do
|
|
|
|
|
|
|
|
desc 'Stops the websocket server'
|
|
|
|
task :stop do
|
|
|
|
|
|
|
|
command = [
|
|
|
|
'bundle',
|
|
|
|
'exec',
|
|
|
|
'script/websocket-server.rb',
|
|
|
|
'stop',
|
|
|
|
]
|
|
|
|
|
2019-06-28 11:38:49 +00:00
|
|
|
_stdout, stderr, status = Open3.capture3(*command)
|
2018-10-01 17:41:17 +00:00
|
|
|
|
|
|
|
next if status.success?
|
|
|
|
|
|
|
|
abort("Error while stopping websocket server - error status #{status.exitstatus}: #{stderr}")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|