Sha256: 12bf41da7ab01c5dcc06d3d25b6b9c416d7c1654d59115d27ffbb57a6b87f2d3

Contents?: true

Size: 1.05 KB

Versions: 57

Compression:

Stored size: 1.05 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 => :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

57 entries across 57 versions & 1 rubygems

Version Path
katello-4.3.1 app/models/katello/installed_package.rb
katello-4.4.0.rc1 app/models/katello/installed_package.rb
katello-4.2.2 app/models/katello/installed_package.rb
katello-4.3.0 app/models/katello/installed_package.rb
katello-4.3.0.rc4 app/models/katello/installed_package.rb
katello-4.3.0.rc3 app/models/katello/installed_package.rb
katello-4.3.0.rc2.1 app/models/katello/installed_package.rb
katello-4.3.0.rc2 app/models/katello/installed_package.rb
katello-4.3.0.rc1 app/models/katello/installed_package.rb
katello-4.2.1 app/models/katello/installed_package.rb
katello-4.2.0.1 app/models/katello/installed_package.rb
katello-4.1.4 app/models/katello/installed_package.rb
katello-4.0.3 app/models/katello/installed_package.rb
katello-4.2.0.1.rc3 app/models/katello/installed_package.rb
katello-3.18.5 app/models/katello/installed_package.rb
katello-4.2.0.1.rc2 app/models/katello/installed_package.rb
katello-4.2.0.rc2 app/models/katello/installed_package.rb
katello-4.1.3 app/models/katello/installed_package.rb
katello-4.2.0.rc1 app/models/katello/installed_package.rb
katello-4.0.2.1 app/models/katello/installed_package.rb