Module: Content::RedhatExtensions
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/content/redhat_extensions.rb
Instance Method Summary collapse
- #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
#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 = Content::Repository.available_for_host(host).kickstart.first.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 host.attached_repositories.yum.map { |repo| format_repo(repo) } end |