Sha256: ea3a6a91b62c9022b4345362f52c96b8fe9c82a46fe4a7ccca2cfa5b0d8a5b14

Contents?: true

Size: 556 Bytes

Versions: 20

Compression:

Stored size: 556 Bytes

Contents

module Actions
  module Katello
    module Repository
      class CapsuleGenerateAndSync < Actions::Base
        def humanized_name
          _("Sync Repository on Capsule(s)")
        end

        def plan(repo)
          if repo.node_syncable?
            concurrence do
              ::Katello::CapsuleContent.with_environment(repo.environment).each do |capsule_content|
                plan_action(Katello::CapsuleContent::Sync, capsule_content, repository: repo)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.2.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.2.0 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.2.0.rc3 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.2.0.rc2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.2.0.rc1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.1.0.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.1.0 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.1.0.rc1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.0 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.0.rc7 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.0.rc5 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.0.rc4 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.0.rc3 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.0.rc2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-3.0.0.rc1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb