Sha256: 3c4ec4967dfaa9a6c54d3ad666aebe077cfeb641f13c43169619d1e53a4cb461
Contents?: true
Size: 720 Bytes
Versions: 38
Compression:
Stored size: 720 Bytes
Contents
module ForemanInventoryUpload class UploadsController < ::ApplicationController include InventoryUpload::ReportActions def last label = ForemanInventoryUpload::Async::UploadReportJob.output_label(params[:organization_id]) output = ForemanInventoryUpload::Async::ProgressOutput.get(label)&.full_output render json: { output: output, }, status: :ok end def download_file filename, file = report_file(params[:organization_id]) send_file file, disposition: 'attachment', filename: filename end def enable_cloud_connector cloud_connector = ForemanRhCloud::CloudConnector.new render json: cloud_connector.install.to_json end end end
Version data entries
38 entries across 38 versions & 1 rubygems