Class: Installation::Dialogs::ProductSelection

Inherits:
CWM::Dialog
  • Object
show all
Defined in:
src/lib/installation/dialogs/product_selection.rb

Overview

The dialog is used to select from available product that can do system installation. Currently it is mainly used for LeanOS that have on one media more products.

Instance Method Summary collapse

Constructor Details

#initializeProductSelection

Returns a new instance of ProductSelection



15
16
17
# File 'src/lib/installation/dialogs/product_selection.rb', line 15

def initialize
  textdomain "installation"
end

Instance Method Details

#contentsObject



31
32
33
# File 'src/lib/installation/dialogs/product_selection.rb', line 31

def contents
  VBox(selector)
end

#productsObject



23
24
25
# File 'src/lib/installation/dialogs/product_selection.rb', line 23

def products
  Y2Packager::Product.available_base_products
end

#runObject

enhances default run by additional action if next is pressed



36
37
38
39
40
41
42
43
# File 'src/lib/installation/dialogs/product_selection.rb', line 36

def run
  res = super
  return res if res != :next

  Yast::WorkflowManager.merge_product_workflow(product)
  # run new steps for product
  Yast::ProductControl.RunFrom(Yast::ProductControl.CurrentStep + 1, true)
end

#selectorObject



27
28
29
# File 'src/lib/installation/dialogs/product_selection.rb', line 27

def selector
  @selector ||= Widgets::ProductSelector.new(products)
end

#titleObject



19
20
21
# File 'src/lib/installation/dialogs/product_selection.rb', line 19

def title
  _("Product Selection")
end