Module: Yast::LxcWizardsInclude
- Defined in:
- ../../src/include/lxc/wizards.rb
Instance Method Summary (collapse)
- - (Object) initialize_lxc_wizards(include_target)
-
- (Object) LxcSequence
Whole configuration of lxc.
-
- (Object) MainSequence
Main workflow of the lxc configuration.
-
- (Object) ReadDialog
Read settings dialog.
Instance Method Details
- (Object) initialize_lxc_wizards(include_target)
30 31 32 33 34 35 36 37 38 39 40 41 |
# File '../../src/include/lxc/wizards.rb', line 30 def initialize_lxc_wizards(include_target) Yast.import "UI" textdomain "lxc" Yast.import "Confirm" Yast.import "Lxc" Yast.import "Sequencer" Yast.import "Wizard" Yast.include include_target, "lxc/dialogs.rb" end |
- (Object) LxcSequence
Whole configuration of lxc
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File '../../src/include/lxc/wizards.rb', line 72 def LxcSequence 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.HideBackButton Wizard.HideAbortButton ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |
- (Object) MainSequence
Main workflow of the lxc configuration
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File '../../src/include/lxc/wizards.rb', line 54 def MainSequence aliases = { "overview" => lambda { OverviewDialog() }, "add" => lambda do AddDialog() end } sequence = { "ws_start" => "overview", "overview" => { :abort => :abort, :next => :next, :add => "add" }, "add" => { :abort => :abort, :next => "overview" } } ret = Sequencer.Run(aliases, sequence) deep_copy(ret) end |
- (Object) ReadDialog
Read settings dialog
45 46 47 48 49 50 |
# File '../../src/include/lxc/wizards.rb', line 45 def ReadDialog Wizard.RestoreHelp(Ops.get_string(@HELPS, "read", "")) return :abort if !Confirm.MustBeRoot ret = Lxc.Read ret ? :next : :abort end |