Sha256: 11d35245329d549bfcbd2d1ed9c387526d1360ed33666d3fb5204dce19f1bbc0

Contents?: true

Size: 1.16 KB

Versions: 52

Compression:

Stored size: 1.16 KB

Contents

module Katello
  class InstalledPackage < Katello::Model
    apipie :class, desc: "A class representing #{model_name.human} object" do
      name 'Installed Package'
      refs 'InstalledPackage'
      sections only: %w[all additional]
      property :name, String, desc: 'Returns name of the package'
      property :nvra, String, desc: 'Returns package name with version, release and architecture'
      property :nvrea, String, desc: 'Returns package name with version, release, epoch and architecture'
    end
    class Jail < Safemode::Jail
      allow :nvra, :nvrea, :name
    end

    has_many :host_installed_packages, :class_name => "Katello::HostInstalledPackage", :dependent => :destroy, :inverse_of => :installed_package
    has_many :hosts, :through => :host_installed_packages, :class_name => "::Host"

    scoped_search :on => :id, :complete_value => true
    scoped_search :on => :name, :complete_value => true
    scoped_search :on => :nvrea
    scoped_search :on => :nvra
    scoped_search :on => :epoch
    scoped_search :on => :version
    scoped_search :on => :release
    scoped_search :on => :arch
    scoped_search :on => :vendor, :complete_value => true
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

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