Sha256: 2d590b0cef76f0c8ba066b441cd39f5f2a17e6d9004adcf8357152a42f379f59
Contents?: true
Size: 609 Bytes
Versions: 9
Compression:
Stored size: 609 Bytes
Contents
module Actions module Katello module System class GenerateApplicability < Actions::Base def plan(systems) plan_action(Pulp::Consumer::GenerateApplicability, :uuids => systems.map(&:uuid)) plan_self(:system_ids => systems.map(&:id)) end def finalize ::User.current = ::User.anonymous_admin systems = ::Katello::System.where(:id => input[:system_ids]) systems.each do |system| system.import_applicability(false) end ensure ::User.current = nil end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems