Module: Yast::KdumpWizardsInclude
- Defined in:
- ../../src/include/kdump/wizards.rb
Instance Method Summary (collapse)
- - (Object) initialize_kdump_wizards(include_target)
-
- (Object) KdumpAutoSequence
Whole configuration of kdump but without reading and writing.
-
- (Object) KdumpSequence
Whole configuration of kdump.
-
- (Object) MainSequence
Main workflow of the kdump configuration.
Instance Method Details
- (Object) initialize_kdump_wizards(include_target)
30 31 32 33 34 35 36 37 38 39 40 41 |
# File '../../src/include/kdump/wizards.rb', line 30 def initialize_kdump_wizards(include_target) Yast.import "UI" textdomain "kdump" Yast.import "Sequencer" Yast.import "Wizard" Yast.import "Stage" Yast.include include_target, "kdump/complex.rb" Yast.include include_target, "kdump/dialogs.rb" end |
- (Object) KdumpAutoSequence
Whole configuration of kdump but without reading and writing. For use with autoinstallation.
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File '../../src/include/kdump/wizards.rb', line 90 def KdumpAutoSequence Wizard.CreateDialog Wizard.SetContentsButtons( "", VBox(), "", Label.BackButton, Label.NextButton ) if Stage.initial Wizard.SetTitleIcon("kdump") # no .desktop file in inst-sys else Wizard.SetDesktopIcon("kdump") end ret = MainSequence() UI.CloseDialog deep_copy(ret) end |
- (Object) KdumpSequence
Whole configuration of kdump
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File '../../src/include/kdump/wizards.rb', line 59 def KdumpSequence aliases = { "read" => [lambda { ReadDialog() }, true], "main" => lambda { MainSequence() }, "write" => [lambda { WriteDialog() }, true] } sequence = { "ws_start" => "read", "read" => { :abort => :abort, :next => "main" }, "main" => { :abort => :abort, :next => "write" }, "write" => { :abort => :abort, :next => :next } } Wizard.CreateDialog if Mode.normal Wizard.SetDesktopTitleAndIcon("kdump") else Wizard.SetTitleIcon("yast-kdump") end ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |
- (Object) MainSequence
Main workflow of the kdump configuration
45 46 47 48 49 50 51 52 53 54 55 |
# File '../../src/include/kdump/wizards.rb', line 45 def MainSequence aliases = { "conf" => lambda { RunKdumpDialogs() } } sequence = { "ws_start" => "conf", "conf" => { :abort => :abort, :next => :next } } ret = Sequencer.Run(aliases, sequence) deep_copy(ret) end |