Class: Yum::CentOS::Base
- Defined in:
- lib/repo_conf_generators/yum_conf_generators.rb
Overview
The different generate classes will always generate an exception (“string”) if there’s anything that went wrong. If no exception, things went well.
Class Method Summary collapse
Class Method Details
.generate(description, base_urls, frozen_date = "latest") ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/repo_conf_generators/yum_conf_generators.rb', line 38 def self.generate(description, base_urls, frozen_date="latest") opts = {:repo_filename => "CentOS-Base", :repo_name => "base", :repo_subpath => "os", :description => description, :base_urls => base_urls, :enabled => true } opts[:frozen_date] = frozen_date || "latest" # Optional frozen date Yum::CentOS::abstract_generate(opts) end |