File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 raise "You must specify an application module to load" unless new_resource . config
2828
2929 if !new_resource . restart_command
30+ r = new_resource
3031 new_resource . restart_command do
31- run_context . resource_collection . find ( :supervisor_service => "#{ new_resource . application . name } -celeryd" ) . run_action ( :restart ) if new_resource . celeryd
32- run_context . resource_collection . find ( :supervisor_service => "#{ new_resource . application . name } -celerybeat" ) . run_action ( :restart ) if new_resource . celerybeat
33- run_context . resource_collection . find ( :supervisor_service => "#{ new_resource . application . name } -celerycam" ) . run_action ( :restart ) if new_resource . celerycam
32+ run_context . resource_collection . find ( :supervisor_service => "#{ r . application . name } -celeryd" ) . run_action ( :restart ) if r . celeryd
33+ run_context . resource_collection . find ( :supervisor_service => "#{ r . application . name } -celerybeat" ) . run_action ( :restart ) if r . celerybeat
34+ run_context . resource_collection . find ( :supervisor_service => "#{ r . application . name } -celerycam" ) . run_action ( :restart ) if r . celerycam
3435 end
3536 end
3637
Original file line number Diff line number Diff line change 3434 end
3535
3636 if !new_resource . restart_command
37+ r = new_resource
3738 new_resource . restart_command do
38- run_context . resource_collection . find ( :supervisor_service => new_resource . application . name ) . run_action ( :restart )
39+ run_context . resource_collection . find ( :supervisor_service => r . application . name ) . run_action ( :restart )
3940 end
4041 end
4142
You can’t perform that action at this time.
0 commit comments