trabajo-afectivo/lib/tasks/zammad/ci/service/scheduler/stop.rake

29 lines
523 B
Ruby
Raw Normal View History

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