Sha256: d053715c5e372792185cbd78550a20694a5c600e3cbb621f481544c87a0b550a
Contents?: true
Size: 745 Bytes
Versions: 30
Compression:
Stored size: 745 Bytes
Contents
module Actions module Katello module Repository class CapsuleSync < Actions::Base def humanized_name _("Sync Repository on Smart Proxy(ies)") end def plan(repo) if repo.node_syncable? concurrence do smart_proxies = ::SmartProxy.unscoped.with_environment(repo.environment).select { |sp| sp.authorized?(:manage_capsule_content) && sp.authorized?(:view_capsule_content) } unless smart_proxies.blank? plan_action(::Actions::BulkAction, ::Actions::Katello::CapsuleContent::Sync, smart_proxies, :repository_id => repo.id) end end end end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems