Module: Yast::NisServerWizardsInclude
- Defined in:
- ../../src/include/nis_server/wizards.rb
Instance Method Summary (collapse)
- - (Object) initialize_nis_server_wizards(include_target)
-
- (Object) MainSequence
Main workflow of the NIS server configuration.
-
- (Object) NisServerAutoSequence
Whole configuration of NIS server but without reading and writing.
-
- (Object) NisServerSequence
Whole configuration of NIS server.
Instance Method Details
- (Object) initialize_nis_server_wizards(include_target)
31 32 33 34 35 36 37 38 39 40 |
# File '../../src/include/nis_server/wizards.rb', line 31 def initialize_nis_server_wizards(include_target) Yast.import "UI" textdomain "nis_server" Yast.import "Wizard" Yast.import "Label" Yast.import "Sequencer" Yast.include include_target, "nis_server/ui.rb" end |
- (Object) MainSequence
Main workflow of the NIS server configuration
44 45 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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File '../../src/include/nis_server/wizards.rb', line 44 def MainSequence aliases = { "begin" => lambda { WhatToConfigure() }, "exit_popup" => lambda { ExitPopup() }, "install" => [lambda { InstallServer() }, true], "slave" => lambda { SlaveDialog() }, "query_hosts" => lambda { QueryHosts() }, "master" => lambda { MasterDialog() }, "details" => lambda { DetailsDialog() }, "maps" => lambda { MapsDialog() }, "decide" => [lambda { SlaveExists() }, true], "master_slave" => lambda { MastersSlavesDialog() } } sequence = { "ws_start" => "begin", "begin" => { :slave => "install", :master => "install", :finish => :next, :abort => :abort, :exit => "exit_popup", :nothing => :nothing }, "exit_popup" => { :exit => :exit, :back => "begin" }, "install" => { :master => "master", :slave => "slave", :abort => :abort }, "slave" => { :next => "query_hosts", :abort => :abort }, "master" => { :next => "decide", :details => "details", :abort => :abort }, "details" => { :next => "master", :abort => :abort }, "decide" => { :have_slave => "master_slave", :none_slave => "maps", :abort => :abort }, "master_slave" => { :next => "maps", :abort => :abort }, "maps" => { :next => "query_hosts", :abort => :abort }, "query_hosts" => { :next => :next, :abort => :abort } } ret = Sequencer.Run(aliases, sequence) ret end |
- (Object) NisServerAutoSequence
Whole configuration of NIS server but without reading and writing. For use with autoinstallation.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 |
# File '../../src/include/nis_server/wizards.rb', line 132 def NisServerAutoSequence # Translators: dialog caption caption = _("NIS Server Configuration") # label contents = Label(_("Initializing...")) Wizard.CreateDialog Wizard.SetContentsButtons( caption, contents, "", Label.BackButton, Label.NextButton ) ret = MainSequence() UI.CloseDialog ret end |
- (Object) NisServerSequence
Whole configuration of NIS server
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File '../../src/include/nis_server/wizards.rb', line 99 def NisServerSequence aliases = { "read" => [lambda { ReadDialog() }, true], "main" => lambda { MainSequence() }, "write" => [lambda { WriteDialog() }, true], "result" => lambda { ResultPopup() }, "error_details" => lambda { DetailsPopup() } } sequence = { "ws_start" => "read", "read" => { :abort => :abort, :next => "main" }, "main" => { :abort => :abort, :nothing => :nothing, :next => "write" }, "write" => { :next => "result" }, "result" => { :ok => :next, :details => "error_details" }, "error_details" => { :ok => "result" } } Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("nis_server") ret = Sequencer.Run(aliases, sequence) UI.CloseDialog ret end |