Sha256: 22511f91286a7be6cb835691750d1fe3b6bfa679ca3a417d9563cd2088ce1794
Contents?: true
Size: 654 Bytes
Versions: 134
Compression:
Stored size: 654 Bytes
Contents
module Actions module Katello module Repository class ImportApplicability < Actions::Base middleware.use Actions::Middleware::ExecuteIfContentsChanged input_format do param :repo_id param :contents_changed end def run repo = ::Katello::Repository.find(input[:repo_id]) repo.hosts_with_applicability.each do |host| ::Katello::EventQueue.push_event(::Katello::Events::ImportHostApplicability::EVENT_TYPE, host.id) end end def rescue_strategy_for_self Dynflow::Action::Rescue::Skip end end end end end
Version data entries
134 entries across 134 versions & 1 rubygems