Module: CoreCronServersController
- Includes:
- CoreController
- Defined in:
- lib/app/controllers/concerns/core_cron_servers_controller.rb
Overview
Manage cron_servers job servers
Instance Method Summary collapse
-
#demote ⇒ Object
Demote a cron_servers job server.
-
#destroy ⇒ Object
Destroy a cron_servers job server.
Instance Method Details
#demote ⇒ Object
Demote a cron_servers job server
9 10 11 12 13 14 15 |
# File 'lib/app/controllers/concerns/core_cron_servers_controller.rb', line 9 def demote cron_server.become_secondary redirect_to_referrer(index_path) rescue StandardError => error log_controller_error error, true redirect_to redirect_to_referrer(index_path) end |
#destroy ⇒ Object
Destroy a cron_servers job server
18 19 20 21 22 23 24 |
# File 'lib/app/controllers/concerns/core_cron_servers_controller.rb', line 18 def destroy cron_server.destroy! redirect_to_referrer(index_path) rescue StandardError => error log_controller_error error, true redirect_to_referrer(index_path) end |