Sha256: efe45e2a8f7ea2b0e88fc4dfc51ef93838b05cf262429685c6a998fe6d99c19f

Contents?: true

Size: 559 Bytes

Versions: 18

Compression:

Stored size: 559 Bytes

Contents

module Actions
  module Katello
    module Repository
      class FinishUpload < Actions::Base
        def plan(repository, dependency = nil)
          plan_action(Katello::Repository::MetadataGenerate, repository, nil, dependency)

          recent_range = 5.minutes.ago.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

18 entries across 18 versions & 1 rubygems

Version Path
katello-3.2.0 app/lib/actions/katello/repository/finish_upload.rb
katello-3.2.0.rc3 app/lib/actions/katello/repository/finish_upload.rb
katello-3.2.0.rc2 app/lib/actions/katello/repository/finish_upload.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.2.0.rc1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.1.0.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.1.0 app/lib/actions/katello/repository/finish_upload.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.2 app/lib/actions/katello/repository/finish_upload.rb
katello-3.1.0.rc1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.0 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.0.rc7 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.0.rc5 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.0.rc4 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.0.rc3 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.0.rc2 app/lib/actions/katello/repository/finish_upload.rb
katello-3.0.0.rc1 app/lib/actions/katello/repository/finish_upload.rb