Class: Installation::UpdateRepositoriesFinder
- Inherits:
-
Object
- Object
- Installation::UpdateRepositoriesFinder
- Includes:
- Yast::I18n, Yast::Logger
- Defined in:
- src/lib/installation/update_repositories_finder.rb
Overview
This class find repositories to be used by the self-update feature.
Instance Method Summary collapse
-
#initialize ⇒ UpdateRepositoriesFinder
constructor
Constructor.
-
#updates ⇒ Object
Return the update source.
Constructor Details
#initialize ⇒ UpdateRepositoriesFinder
Constructor
41 42 43 |
# File 'src/lib/installation/update_repositories_finder.rb', line 41 def initialize textdomain "installation" end |
Instance Method Details
#updates ⇒ Object
Return the update source
46 47 48 49 50 51 52 53 54 55 56 |
# File 'src/lib/installation/update_repositories_finder.rb', line 46 def updates return @updates if @updates @updates = Array(custom_update) # Custom URL return @updates unless @updates.empty? @updates = updates_from_connect return @updates unless @updates.empty? @updates = Array(update_from_control) end |