Sha256: 4165e4c258cc1fc9fbe59b82a9d10089c22b25c7c8726341359f7db686c3432a
Contents?: true
Size: 501 Bytes
Versions: 6
Compression:
Stored size: 501 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 filename path end def self.total_for_repositories(repos) self.in_repositories(repos).count end end end
Version data entries
6 entries across 6 versions & 1 rubygems