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
18
# File 'src/lib/installation/dialogs/product_selection.rb', line 15

def initialize
  super
  textdomain "installation"
end

Instance Method Details

#contentsObject


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

def contents
  VBox(selector)
end

#productsObject


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

def products
  Y2Packager::Product.available_base_products
end

#runObject

enhances default run by additional action if next is pressed


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

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


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

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

#titleObject


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

def title
  _("Product Selection")
end