Skip to content

Commit

Permalink
more yardoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed May 19, 2020
1 parent 574cd1c commit 93b8b33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/registration/addon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
require "y2packager/resolvable"

module Registration
# this is a wrapper class around SUSE::Connect::Product object
# A wrapper class around SUSE::Connect::Product object,
# https://rubydoc.info/github/SUSE/connect/SUSE/Connect/Product
class Addon
extend Yast::I18n
include Yast::I18n
Expand All @@ -38,6 +39,7 @@ class << self
# read the remote add-on from the registration server
# @param registration [Registration::Registration] use this object for
# reading the remote add-ons
# @return [Array<Addon>]
def find_all(registration)
return @cached_addons if @cached_addons

Expand Down Expand Up @@ -83,7 +85,7 @@ def reset_auto_selected
@auto_selected = nil
end

# list of auto selected add-ons
# @return [Array<Addon>] auto selected add-ons
def auto_selected
@auto_selected ||= detect_auto_selection
end
Expand Down Expand Up @@ -155,6 +157,7 @@ def create_addon_with_deps(root)
result
end

# @return [Array<Addon>]
def load_addons(registration)
pure_addons = registration.get_addon_list
# get IDs of the already activated addons
Expand All @@ -172,6 +175,7 @@ def load_addons(registration)
end
end

# @return [Array<Addon>]
def detect_auto_selection
required = selected + registered

Expand Down

0 comments on commit 93b8b33

Please sign in to comment.