Module: Yast::IscsiServerWizardsInclude
- Defined in:
- ../../src/include/iscsi-server/wizards.rb
Instance Method Summary (collapse)
- - (Object) initialize_iscsi_server_wizards(include_target)
-
- (Object) IscsiServerAutoSequence
Whole configuration of iscsi-server but without reading and writing.
-
- (Object) IscsiServerSequence
Whole configuration of iscsi-server.
-
- (Object) MainSequence
Main workflow of the iscsi-server configuration.
Instance Method Details
- (Object) initialize_iscsi_server_wizards(include_target)
32 33 34 35 36 37 38 39 40 41 42 |
# File '../../src/include/iscsi-server/wizards.rb', line 32 def initialize_iscsi_server_wizards(include_target) Yast.import "UI" textdomain "iscsi-server" Yast.import "Sequencer" Yast.import "Wizard" Yast.include include_target, "iscsi-server/complex.rb" Yast.include include_target, "iscsi-server/dialogs.rb" end |
- (Object) IscsiServerAutoSequence
Whole configuration of iscsi-server but without reading and writing. For use with autoinstallation.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File '../../src/include/iscsi-server/wizards.rb', line 109 def IscsiServerAutoSequence # Initialization dialog caption caption = _("iSCSI Target Configuration") # Initialization dialog contents contents = Label(_("Initializing...")) Wizard.CreateDialog Wizard.SetContentsButtons( caption, contents, "", Label.BackButton, Label.NextButton ) ret = MainSequence() UI.CloseDialog deep_copy(ret) end |
- (Object) IscsiServerSequence
Whole configuration of iscsi-server
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
# File '../../src/include/iscsi-server/wizards.rb', line 83 def IscsiServerSequence 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.OpenCancelOKDialog Wizard.SetDesktopTitleAndIcon("iscsi-server") ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |
- (Object) MainSequence
Main workflow of the iscsi-server configuration
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File '../../src/include/iscsi-server/wizards.rb', line 46 def MainSequence # FIXME: adapt to your needs aliases = { "summary" => lambda { SummaryDialog() }, "add" => lambda { AddDialog() }, "edit" => lambda { EditDialog() }, "auth" => lambda { AuthDialog() }, "expert" => lambda { ExpertDialog() } } # FIXME: adapt to your needs sequence = { "ws_start" => "summary", "summary" => { :abort => :abort, :next => :next, :add => "add", :edit => "edit" }, "add" => { :abort => :abort, :next => "auth", :back => :back, :expert => "expert" }, "expert" => { :abort => :abort, :next => "add", :back => :back }, "edit" => { :abort => :abort, :next => "auth", :back => :back }, "auth" => { :abort => :abort, :next => "summary", :back => :back } } ret = Sequencer.Run(aliases, sequence) deep_copy(ret) end |