Sha256: 5dea45fe1d38c0616df2b242bcf0d723b77bc834caadd5c068212c340f1e6a4b

Contents?: true

Size: 269 Bytes

Versions: 41

Compression:

Stored size: 269 Bytes

Contents

module InsightsCloud
  class TasksController < ::ApplicationController
    def create
      task = ForemanTasks.async_task(InsightsCloud::Async::InsightsFullSync, Organization.authorized)

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

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
foreman_rh_cloud-9.0.59 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-11.0.2 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-11.0.1 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-11.0.0 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.58 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-10.0.2 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.57 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-10.0.1 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.56 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.55 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.54 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.53 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.52 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-8.0.52 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-9.0.51 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-8.0.51 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-7.0.48 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-7.0.47 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-8.0.50 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-8.0.49 app/controllers/insights_cloud/tasks_controller.rb