Sha256: 96542ec3b324c245875af723d585587a3c86e5d853dc79377dd099d1deeb982c

Contents?: true

Size: 1007 Bytes

Versions: 3

Compression:

Stored size: 1007 Bytes

Contents

module Actions
  module Katello
    module Repository
      class MetadataGenerate < Actions::EntryAction
        def plan(repository, options = {})
          action_subject(repository)
          repository.check_ready_to_act!
          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)
          force_publication = options.fetch(:force_publication, false)

          plan_action(Pulp3::Orchestration::Repository::GenerateMetadata,
                        repository, smart_proxy,
                        :force_publication => force_publication,
                        :source_repository => source_repository,
                        :matching_content => matching_content)
        end

        def resource_locks
          :link
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.13.1 app/lib/actions/katello/repository/metadata_generate.rb
katello-4.13.0 app/lib/actions/katello/repository/metadata_generate.rb
katello-4.13.0.rc1 app/lib/actions/katello/repository/metadata_generate.rb