Class: ForemanInventoryUpload::Async::GenerateAllReportsJob
- Inherits:
-
Actions::EntryAction
- Object
- Actions::EntryAction
- ForemanInventoryUpload::Async::GenerateAllReportsJob
show all
- Includes:
- Actions::RecurringAction, DelayedStart
- Defined in:
- lib/foreman_inventory_upload/async/generate_all_reports_job.rb
Constant Summary
DelayedStart::START_WINDOW
Instance Method Summary
collapse
#after_delay, #humanized_name
Instance Method Details
#logger ⇒ Object
48
49
50
|
# File 'lib/foreman_inventory_upload/async/generate_all_reports_job.rb', line 48
def logger
action_logger
end
|
#plan_generate_report(folder, organization, disconnected) ⇒ Object
44
45
46
|
# File 'lib/foreman_inventory_upload/async/generate_all_reports_job.rb', line 44
def plan_generate_report(folder, organization, disconnected)
plan_action(ForemanInventoryUpload::Async::HostInventoryReportJob, folder, organization.id, '', !disconnected)
end
|
#rescue_strategy_for_self ⇒ Object
40
41
42
|
# File 'lib/foreman_inventory_upload/async/generate_all_reports_job.rb', line 40
def rescue_strategy_for_self
Dynflow::Action::Rescue::Fail
end
|
#run ⇒ Object
36
37
38
|
# File 'lib/foreman_inventory_upload/async/generate_all_reports_job.rb', line 36
def run
output[:status] = _('The scheduled process is disabled because this Foreman is configured with a local IoP Smart Proxy.') if ForemanRhCloud.with_iop_smart_proxy?
end
|