Sha256: e796766ff2be6e229126836832bd2dd33885898885f63e083767417ba39baccf

Contents?: true

Size: 740 Bytes

Versions: 101

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

101 entries across 101 versions & 1 rubygems

Version Path
katello-4.14.2 app/lib/actions/katello/check_matching_content.rb
katello-4.15.0 app/lib/actions/katello/check_matching_content.rb
katello-4.15.0.rc2 app/lib/actions/katello/check_matching_content.rb
katello-4.15.0.rc1 app/lib/actions/katello/check_matching_content.rb
katello-4.14.1 app/lib/actions/katello/check_matching_content.rb
katello-4.14.0 app/lib/actions/katello/check_matching_content.rb
katello-4.14.0.rc3 app/lib/actions/katello/check_matching_content.rb
katello-4.14.0.rc2 app/lib/actions/katello/check_matching_content.rb
katello-4.14.0.rc1.1 app/lib/actions/katello/check_matching_content.rb
katello-4.14.0.rc1 app/lib/actions/katello/check_matching_content.rb
katello-4.13.1 app/lib/actions/katello/check_matching_content.rb
katello-4.13.0 app/lib/actions/katello/check_matching_content.rb
katello-4.12.1 app/lib/actions/katello/check_matching_content.rb
katello-4.13.0.rc1 app/lib/actions/katello/check_matching_content.rb
katello-4.12.0 app/lib/actions/katello/check_matching_content.rb
katello-4.12.0.rc3 app/lib/actions/katello/check_matching_content.rb
katello-4.12.0.rc2 app/lib/actions/katello/check_matching_content.rb
katello-4.12.0.rc1 app/lib/actions/katello/check_matching_content.rb
katello-4.11.1 app/lib/actions/katello/check_matching_content.rb
katello-4.11.0 app/lib/actions/katello/check_matching_content.rb