Sha256: 5dea45fe1d38c0616df2b242bcf0d723b77bc834caadd5c068212c340f1e6a4b

Contents?: true

Size: 269 Bytes

Versions: 44

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

44 entries across 44 versions & 1 rubygems

Version Path
foreman_rh_cloud-5.0.39 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-5.0.38 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-5.0.37 app/controllers/insights_cloud/tasks_controller.rb
foreman_rh_cloud-5.0.36 app/controllers/insights_cloud/tasks_controller.rb