Method: Api::V2::DiscoveredHostsController#reboot_all

Defined in:
app/controllers/api/v2/discovered_hosts_controller.rb

#reboot_allObject



214
215
216
217
218
219
220
221
222
223
224
225
# File 'app/controllers/api/v2/discovered_hosts_controller.rb', line 214

def reboot_all
  error_message = perform_reboot_all
  if error_message
    render_error :custom_error,
                 :status => :unprocessable_entity,
                 :locals => {
                     :message => error_message
                 }
  else
    process_success :success_msg => _("Discovered hosts are rebooting now")
  end
end