Class: Installation::CustomPatterns

Inherits:
Object
  • Object
show all
Defined in:
src/lib/installation/custom_patterns.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.showObject

flag if custom patterns should be shown


10
11
12
# File 'src/lib/installation/custom_patterns.rb', line 10

def show
  @show
end

Instance Method Details

#runObject


13
14
15
16
17
18
19
20
21
22
23
# File 'src/lib/installation/custom_patterns.rb', line 13

def run
  if self.class.show
    ret = Yast::PackagesUI.RunPatternSelector(enable_back: true,
      cancel_label: Yast::Label.AbortButton)
    ret = :next if ret == :accept
  else
    ret = :auto
  end

  ret
end