Sha256: 517d82f31938e70e0db515b6a33e05548bff2764d5d1a3076087dc4312ed52a6

Contents?: true

Size: 1017 Bytes

Versions: 41

Compression:

Stored size: 1017 Bytes

Contents

module Actions
  module Katello
    module Repository
      class MetadataGenerate < Actions::Base
        include Actions::Katello::PulpSelector

        def plan(repository, options = {})
          dependency = options.fetch(:dependency, nil)
          force = options.fetch(:force, false)
          source_repository = options.fetch(:source_repository, nil)
          source_repository ||= repository.target_repository if repository.link?
          smart_proxy = options.fetch(:smart_proxy, SmartProxy.pulp_primary)
          matching_content = options.fetch(:matching_content, false)

          plan_pulp_action([Pulp::Repository::DistributorPublish, Pulp3::Orchestration::Repository::GenerateMetadata],
                        repository, smart_proxy,
                        :force => force,
                        :source_repository => source_repository,
                        :matching_content => matching_content,
                        :dependency => dependency)
        end
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
katello-4.1.0.rc1 app/lib/actions/katello/repository/metadata_generate.rb
katello-4.0.0 app/lib/actions/katello/repository/metadata_generate.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/repository/metadata_generate.rb
katello-4.0.0.rc3 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.2.1 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.2 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.17.3 app/lib/actions/katello/repository/metadata_generate.rb
katello-4.0.0.rc2 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.1.1 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.17.2 app/lib/actions/katello/repository/metadata_generate.rb
katello-4.0.0.rc1 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.1 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.0 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.17.1 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.0.rc2.1 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.0.rc2 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.17.0 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.18.0.rc1 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.17.0.rc2.2 app/lib/actions/katello/repository/metadata_generate.rb
katello-3.17.0.rc2.1 app/lib/actions/katello/repository/metadata_generate.rb