class ForemanInventoryUpload::Async::SingleHostReportJob

Public Instance Methods

hostname(host_id) click to toggle source
# File lib/foreman_inventory_upload/async/single_host_report_job.rb, line 9
def hostname(host_id)
  host = ::Host.find_by(id: host_id)
  host&.name
end
humanized_name() click to toggle source
# File lib/foreman_inventory_upload/async/single_host_report_job.rb, line 14
def humanized_name
  hostname_result = hostname(input[:host_id])
  hostname_result.present? ? format(_("Single-host report job for host %s"), hostname_result) : _("Single-host report job")
end
plan(base_folder, organization_id, host_id) click to toggle source
# File lib/foreman_inventory_upload/async/single_host_report_job.rb, line 4
def plan(base_folder, organization_id, host_id)
  input[:host_id] = host_id
  super(base_folder, organization_id, "id=#{input[:host_id]}")
end