Class: Yum::CentOS::AddOns
- Defined in:
- lib/repo_conf_generators/yum_conf_generators.rb
Overview
The AddOns repository is used in CentOS 5 but not in 6+.
Class Method Summary collapse
Class Method Details
.generate(description, base_urls, frozen_date = "latest") ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/repo_conf_generators/yum_conf_generators.rb', line 67 def self.generate(description, base_urls, frozen_date="latest") # Support CentOS 6+ by NOT generating AddOns repo. return unless Yum::CentOS::is_this_centos? && Yum::Epel::get_enterprise_linux_version.to_i < 6 opts = {:repo_filename => "CentOS-addons", :repo_name => "addons", :repo_subpath => "addons", :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 |