Sha256: e796766ff2be6e229126836832bd2dd33885898885f63e083767417ba39baccf

Contents?: true

Size: 740 Bytes

Versions: 102

Compression:

Stored size: 740 Bytes

Contents

module Actions
  module Katello
    module CheckMatchingContent
      def check_matching_content(new_repository, source_repositories)
        check_matching_content = ::Katello::RepositoryTypeManager.find(new_repository.content_type).metadata_publish_matching_check
        if new_repository.environment && source_repositories.count == 1 && check_matching_content
          match_check_output = plan_action(Katello::Repository::CheckMatchingContent,
                                           :source_repo_id => source_repositories.first.id,
                                           :target_repo_id => new_repository.id).output

          return match_check_output[:matching_content]
        end
        false
      end
    end
  end
end

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
katello-4.2.0.rc2 app/lib/actions/katello/check_matching_content.rb
katello-4.1.3 app/lib/actions/katello/check_matching_content.rb
katello-4.2.0.rc1 app/lib/actions/katello/check_matching_content.rb
katello-4.0.2.1 app/lib/actions/katello/check_matching_content.rb
katello-4.1.2.1 app/lib/actions/katello/check_matching_content.rb
katello-4.0.2 app/lib/actions/katello/check_matching_content.rb
katello-4.1.2 app/lib/actions/katello/check_matching_content.rb
katello-4.1.1 app/lib/actions/katello/check_matching_content.rb
katello-4.1.0 app/lib/actions/katello/check_matching_content.rb
katello-4.0.1.2 app/lib/actions/katello/check_matching_content.rb
katello-4.1.0.rc2.2 app/lib/actions/katello/check_matching_content.rb
katello-4.1.0.rc2.1 app/lib/actions/katello/check_matching_content.rb
katello-4.0.1.1 app/lib/actions/katello/check_matching_content.rb
katello-4.1.0.rc2 app/lib/actions/katello/check_matching_content.rb
katello-4.0.1 app/lib/actions/katello/check_matching_content.rb
katello-4.1.0.rc1.1 app/lib/actions/katello/check_matching_content.rb
katello-4.1.0.rc1 app/lib/actions/katello/check_matching_content.rb
katello-4.0.0 app/lib/actions/katello/check_matching_content.rb
katello-4.0.0.rc3.1 app/lib/actions/katello/check_matching_content.rb
katello-4.0.0.rc3 app/lib/actions/katello/check_matching_content.rb