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

Version Path
katello-4.16.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.15.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.16.0.rc2 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.16.0.rc1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.3 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.2 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.15.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.15.0.rc2 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.15.0.rc1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.0.rc3 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.0.rc2 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.14.0.rc1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.13.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.13.0 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.12.1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.13.0.rc1 app/lib/actions/katello/repository/capsule_sync.rb
katello-4.12.0 app/lib/actions/katello/repository/capsule_sync.rb