Class: InsightsCloud::TasksController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- InsightsCloud::TasksController
- Defined in:
- app/controllers/insights_cloud/tasks_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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.) render json: { task: task, }, status: :ok end |