Module: Content::RedhatExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/content/redhat_extensions.rb
Instance Method Summary collapse
- #boot_files_uri(medium, architecture) ⇒ Object
- #medium_uri_with_content_uri(host, url = nil) ⇒ Object
-
#repos(host) ⇒ Object
return an array of repositories for kickstart script as additional repos to the kickstart main repo, this list will typically include updates and epel.
Instance Method Details
#boot_files_uri(medium, architecture) ⇒ Object
22 23 24 25 26 27 |
# File 'app/models/concerns/content/redhat_extensions.rb', line 22 def boot_files_uri(medium, architecture) Redhat::PXEFILES.values.collect do |img| medium_vars_to_uri("#{medium.path}/#{pxedir}/#{img}", architecture.name, self) URI.parse(interpolate_medium_vars(url, arch, os)).normalize end end |
#medium_uri_with_content_uri(host, url = nil) ⇒ Object
8 9 10 11 12 13 14 |
# File 'app/models/concerns/content/redhat_extensions.rb', line 8 def medium_uri_with_content_uri host, url = nil if url.nil? && (full_path = kickstart_repo(host).try(:full_path)) URI.parse(full_path) else medium_uri_without_content_uri(host, url) end end |
#repos(host) ⇒ Object
return an array of repositories for kickstart script as additional repos to the kickstart main repo, this list will typically include updates and epel
18 19 20 |
# File 'app/models/concerns/content/redhat_extensions.rb', line 18 def repos host yum_repos(host).map { |repo| format_repo(repo) } end |