Class: InventorySync::Async::InventorySelfHostSync
- Inherits:
-
QueryInventoryJob
- Object
- Actions::EntryAction
- QueryInventoryJob
- InventorySync::Async::InventorySelfHostSync
- Defined in:
- lib/inventory_sync/async/inventory_self_host_sync.rb
Instance Method Summary collapse
Methods inherited from QueryInventoryJob
Methods included from ForemanRhCloud::Async::ExponentialBackoff
#attempts_before_next_interval, #done!, #done?, #invoke_external_task, #poll_external_task, #poll_intervals, #try_execute
Methods included from ForemanRhCloud::CertAuth
#cert_auth_available?, #execute_cloud_request, #foreman_certificate
Methods included from InsightsCloud::CandlepinCache
#candlepin_id_cert, #cp_owner_id, #upstream_owner
Methods included from ForemanRhCloud::CloudRequest
Instance Method Details
#create_facets ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/inventory_sync/async/inventory_self_host_sync.rb', line 17 def create_facets # get the results from the event results = yield add_missing_insights_facet(results.uuid_by_fqdn) unless results.uuid_by_fqdn.empty? results end |
#plan ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/inventory_sync/async/inventory_self_host_sync.rb', line 6 def plan host = ForemanRhCloud.foreman_host if host.nil? logger.warn("Skipping self-host inventory sync: no Foreman host record found.") return end super(host.organization) end |
#rescue_strategy_for_self ⇒ Object
25 26 27 |
# File 'lib/inventory_sync/async/inventory_self_host_sync.rb', line 25 def rescue_strategy_for_self Dynflow::Action::Rescue::Fail end |