Sha256: 3cf10f2b96c6753c1641f0e02bfb2b52070df57296ef1c6031001a28d881a087
Contents?: true
Size: 685 Bytes
Versions: 13
Compression:
Stored size: 685 Bytes
Contents
module Actions module Katello module Repository class CapsuleGenerateAndSync < Actions::Base def humanized_name _("Sync Repository on Smart Proxy(ies)") end def plan(repo) if repo.node_syncable? concurrence do smart_proxies = ::Katello::CapsuleContent.with_environment(repo.environment).map { |c| c.capsule } 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
13 entries across 13 versions & 1 rubygems