Sha256: 4896d3c5295308f32c11562f4361cc4e9169e4c6fdae77d1cabe9728ed2bb949
Contents?: true
Size: 757 Bytes
Versions: 2
Compression:
Stored size: 757 Bytes
Contents
module ForemanInventoryUpload module Async class GenerateReportJob < ShellProcess def self.output_label(label) "report_for_#{label}" end def perform(base_folder, organization) @base_folder = base_folder @organization = organization super(GenerateReportJob.output_label(organization)) QueueForUploadJob.perform_later( base_folder, ForemanInventoryUpload.facts_archive_name(organization), organization ) end def command 'rake foreman_inventory_upload:report:generate' end def env super.merge( 'target' => @base_folder, 'organization_id' => @organization ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_inventory_upload-0.9.0 | lib/foreman_inventory_upload/async/generate_report_job.rb |
foreman_inventory_upload-1.0.0 | lib/foreman_inventory_upload/async/generate_report_job.rb |