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

Version Path
katello-3.5.2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.6.0 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.6.0.rc2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.6.0.rc1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.5.1.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.5.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.5.0.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.5.0 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.5.0.rc2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.5.0.rc1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.4.5 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.4.4 app/lib/actions/katello/repository/capsule_generate_and_sync.rb