Sha256: bf274d0da073b4d84b44eb8d6d3ecf8e1672a1fd437ac15189e5169e751b76f5

Contents?: true

Size: 1.1 KB

Versions: 12

Compression:

Stored size: 1.1 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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
katello-4.4.2.2 app/models/katello/installed_package.rb
katello-4.4.2.1 app/models/katello/installed_package.rb
katello-4.4.2 app/models/katello/installed_package.rb
katello-4.5.1 app/models/katello/installed_package.rb
katello-4.5.0 app/models/katello/installed_package.rb
katello-4.5.0.rc2 app/models/katello/installed_package.rb
katello-4.4.1 app/models/katello/installed_package.rb
katello-4.5.0.rc1 app/models/katello/installed_package.rb
katello-4.4.0.2 app/models/katello/installed_package.rb
katello-4.4.0.1 app/models/katello/installed_package.rb
katello-4.4.0 app/models/katello/installed_package.rb
katello-4.4.0.rc2 app/models/katello/installed_package.rb