Sha256: b0d5a74ca9426a5360802c1289c2287d21f7fbb2fe23836685dbebdb6c3c6ee9

Contents?: true

Size: 674 Bytes

Versions: 25

Compression:

Stored size: 674 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 = ::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

25 entries across 25 versions & 1 rubygems

Version Path
katello-3.11.2 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.10.2 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.10.1.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.10.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.11.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.11.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.11.0.rc2 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.11.0.rc1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.10.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.10.0.rc1.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.9.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.10.0.rc1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.9.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.8.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.9.0.rc2 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.9.0.rc1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.7.1.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.7.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.8.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-3.8.0.rc3 app/lib/actions/katello/repository/capsule_sync.rb