Sha256: 49e5b5f75f059fe01787495dc52305c0f46673e25e515ea12f88990e485509a4

Contents?: true

Size: 464 Bytes

Versions: 146

Compression:

Stored size: 464 Bytes

Contents

module Katello
  class FileUnit < Katello::Model
    self.table_name = 'katello_files'
    include Concerns::PulpDatabaseUnit

    CONTENT_TYPE = 'file'.freeze

    scoped_search :on => :name, :complete_value => true
    scoped_search :on => :path, :complete_value => true
    scoped_search :on => :checksum

    def self.default_sort
      order(:name)
    end

    def self.total_for_repositories(repos)
      self.in_repositories(repos).count
    end
  end
end

Version data entries

146 entries across 146 versions & 1 rubygems

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