Module: Yast::SnapperWizardsInclude
- Defined in:
- ../../src/include/snapper/wizards.rb
Instance Method Summary (collapse)
- - (Object) initialize_snapper_wizards(include_target)
-
- (Object) MainSequence
Main workflow of the snapper configuration.
-
- (Object) SnapperSequence
Whole configuration of snapper.
Instance Method Details
- (Object) initialize_snapper_wizards(include_target)
31 32 33 34 35 36 37 38 39 40 |
# File '../../src/include/snapper/wizards.rb', line 31 def initialize_snapper_wizards(include_target) Yast.import "UI" textdomain "snapper" Yast.import "Sequencer" Yast.import "Wizard" Yast.include include_target, "snapper/dialogs.rb" end |
- (Object) MainSequence
Main workflow of the snapper configuration
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File '../../src/include/snapper/wizards.rb', line 44 def MainSequence aliases = { "summary" => lambda { SummaryDialog() }, "show" => lambda do ShowDialog() end } sequence = { "ws_start" => "summary", "summary" => { :abort => :abort, :next => :next, :show => "show" }, "show" => { :abort => :abort, :next => "summary" } } ret = Sequencer.Run(aliases, sequence) deep_copy(ret) end |
- (Object) SnapperSequence
Whole configuration of snapper
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File '../../src/include/snapper/wizards.rb', line 62 def SnapperSequence aliases = { "read" => [lambda { ReadDialog() }, true], "main" => lambda do MainSequence() end } sequence = { "ws_start" => "read", "read" => { :abort => :abort, :next => "main" }, "main" => { :abort => :abort, :next => :next } } Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("snapper") ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |