Sha256: da9046c595745f89c45f68f9f5e52974135e2fe6a3c45c84cbf84d49586a2fdb

Contents?: true

Size: 563 Bytes

Versions: 10

Compression:

Stored size: 563 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.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

10 entries across 10 versions & 1 rubygems

Version Path
katello-3.3.2 app/lib/actions/katello/repository/finish_upload.rb
katello-3.3.1.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.3.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.3.0.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.3.0 app/lib/actions/katello/repository/finish_upload.rb
katello-3.3.0.rc2 app/lib/actions/katello/repository/finish_upload.rb
katello-3.3.0.rc1.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.3.0.rc1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.2.1.1 app/lib/actions/katello/repository/finish_upload.rb
katello-3.2.1 app/lib/actions/katello/repository/finish_upload.rb