Sha256: ed5193ebcc53137bed7ced16bd8cb258db85ea21cbba706521f064022e0f48cb

Contents?: true

Size: 614 Bytes

Versions: 9

Compression:

Stored size: 614 Bytes

Contents

module Actions
  module Katello
    module Repository
      class CapsuleGenerateAndSync < Actions::Base
        def humanized_name
          _("Generate Capsule Metadata and Sync")
        end

        def plan(repo)
          if repo.node_syncable?
            plan_action(NodeMetadataGenerate, repo)

            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

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.4 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.3 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.0 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.0.rc3 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.0.rc2 app/lib/actions/katello/repository/capsule_generate_and_sync.rb
katello-2.4.0.rc1 app/lib/actions/katello/repository/capsule_generate_and_sync.rb