Class: InsightsCloud::TasksController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/insights_cloud/tasks_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
6
7
8
9
# File 'app/controllers/insights_cloud/tasks_controller.rb', line 3

def create
  task = ForemanTasks.async_task(InsightsCloud::Async::InsightsFullSync, Organization.authorized)

  render json: {
    task: task,
  }, status: :ok
end