Sha256: 30af258b03ea976f3aa08bba9d3ff1a5323c2c067a92d3b0962ec553733cedff
Contents?: true
Size: 715 Bytes
Versions: 17
Compression:
Stored size: 715 Bytes
Contents
module Actions module Katello module Repository class FinishUpload < Actions::Base def plan(repository, options = {}) dependency = options.fetch(:dependency, nil) 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}}}, dependency: dependency) end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems