Class: Yum::CentOS::CentOSPlus

Inherits:
Object
  • Object
show all
Defined in:
lib/repo_conf_generators/yum_conf_generators.rb

Class Method Summary collapse

Class Method Details

.generate(description, base_urls, frozen_date = "latest") ⇒ Object



98
99
100
101
102
103
104
105
106
107
108
# File 'lib/repo_conf_generators/yum_conf_generators.rb', line 98

def self.generate(description, base_urls, frozen_date="latest")
  opts = {:repo_filename => "CentOS-centosplus",
          :repo_name => "centosplus",
          :repo_subpath => "centosplus",
          :description => description,
          :base_urls => base_urls,
          :frozen_date => frozen_date,
          :enabled => true }
  opts[:frozen_date] = frozen_date || "latest" # Optional frozen date
  Yum::CentOS::abstract_generate(opts)
end