Method: Chef::Provider::Package::Yum::RPMDb#initialize

Defined in:
lib/chef/provider/package/yum.rb

#initializeRPMDb

Returns a new instance of RPMDb.


511
512
513
514
515
516
517
518
519
520
521
522
# File 'lib/chef/provider/package/yum.rb', line 511

def initialize
  # package name => [ RPMPackage, RPMPackage ] of different versions
  @rpms = Hash.new
  # package nevra => RPMPackage for lookups
  @index = Hash.new
  # provide name (aka feature) => [RPMPackage, RPMPackage] each providing this feature
  @provides = Hash.new
  # RPMPackages listed as available
  @available = Set.new
  # RPMPackages listed as installed
  @installed = Set.new
end