Class: Installation::UpdateRepositoriesFinder

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeUpdateRepositoriesFinder

Constructor



39
40
41
# File 'src/lib/installation/update_repositories_finder.rb', line 39

def initialize
  textdomain "installation"
end

Instance Method Details

#updatesObject

Return the update source



44
45
46
47
48
49
50
51
52
53
54
# File 'src/lib/installation/update_repositories_finder.rb', line 44

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