Sha256: 10b4b92274c9749356f92f12aa0f679ef9003139698bbe159f03f97372ed290f
Contents?: true
Size: 568 Bytes
Versions: 51
Compression:
Stored size: 568 Bytes
Contents
module ForemanDiscovery class ImportHookService HOOKS = [ ForemanDiscovery::ImportHooks::DiscoveryAttribute, ForemanDiscovery::ImportHooks::LldpNeighbor, ForemanDiscovery::ImportHooks::SubnetAndTaxonomy, ForemanDiscovery::ImportHooks::LockTemplates ] attr_reader :host, :facts def initialize(host:, facts:) @host = host @facts = facts end def after_populate HOOKS.each do |hook_class| hook = hook_class.new(host: host, facts: facts) hook.after_populate end end end end
Version data entries
51 entries across 51 versions & 1 rubygems