Sha256: 1efc2b1febc84dd00a9aede96d6195064616a1baa853c21d8dc4438763897c05
Contents?: true
Size: 1.09 KB
Versions: 24
Compression:
Stored size: 1.09 KB
Contents
module Actions module Katello module Repository class FinishUpload < Actions::Base def plan(repository, options = {}) dependency = options.fetch(:dependency, nil) content_type = options.fetch(:content_type) if content_type unit_type_id = SmartProxy.pulp_master.content_service(content_type)::CONTENT_TYPE else content_type = repository.content_type unit_type_id = SmartProxy.pulp_master.content_service(content_type)::CONTENT_TYPE end generate_metadata = options.fetch(:generate_metadata, true) plan_action(Katello::Repository::MetadataGenerate, repository, :dependency => dependency) if generate_metadata recent_range = 5.minutes.ago.utc.iso8601 plan_action(Katello::Repository::FilteredIndexContent, id: repository.id, filter: {:association => {:created => {"$gt" => recent_range}}}, content_type: unit_type_id, dependency: dependency) end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems