Module: Yast::LdapServerWizardsInclude
- Defined in:
- ../../src/include/ldap-server/wizards.rb
Instance Method Summary (collapse)
- - (Object) initialize_ldap_server_wizards(include_target)
- - (Object) InstProposalSequence
-
- (Object) LdapServerAutoSequence
Whole configuration of ldap-server but without reading and writing.
-
- (Object) LdapServerSequence
Whole configuration of ldap-server.
-
- (Object) MainSequence
Main workflow of the ldap-server configuration.
- - (Object) MigrateSequence
- - (Object) ProposalSequence
Instance Method Details
- (Object) initialize_ldap_server_wizards(include_target)
12 13 14 15 16 17 18 19 20 21 22 |
# File '../../src/include/ldap-server/wizards.rb', line 12 def initialize_ldap_server_wizards(include_target) Yast.import "UI" textdomain "ldap-server" Yast.import "Sequencer" Yast.import "Wizard" Yast.include include_target, "ldap-server/complex.rb" Yast.include include_target, "ldap-server/dialogs.rb" end |
- (Object) InstProposalSequence
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 95 96 97 98 99 100 101 102 103 104 105 106 |
# File '../../src/include/ldap-server/wizards.rb', line 51 def InstProposalSequence caption = _("LDAP Server Configuration") contents = Label(_("Initializing...")) Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("ldap-server") Wizard.SetContentsButtons( caption, contents, "", Label.BackButton, Label.NextButton ) Wizard.SetAbortButton(:abort, Label.CancelButton) LdapServer.WriteModeInstProposal(true) aliases = { "startup" => lambda { EnableServiceDialog() }, "servertype" => lambda { ServerTypeDialog() }, "database" => lambda { ProposalDialog() }, "mastersetup" => lambda { MasterSetupDialog() }, "slavesetup" => lambda { SlaveSetupDialog() } } sequence = { "ws_start" => "startup", "startup" => { :next => "servertype", :abort => :abort, :finish => :disable }, "servertype" => { :next => "database", :slave_setup => "slavesetup", :abort => :abort }, "slavesetup" => { :next => :next, :abort => :abort }, "database" => { :mastersetup => "mastersetup", :next => :next, :abort => :abort }, "mastersetup" => { :next => :next, :abort => :abort } } Builtins.y2milestone("--> starting InstProposalSequence") ret = Sequencer.Run(aliases, sequence) Builtins.y2milestone("<-- InstProposalSequence finished ") UI.CloseDialog LdapServer.WriteModeInstProposal(false) deep_copy(ret) end |
- (Object) LdapServerAutoSequence
Whole configuration of ldap-server but without reading and writing. For use with autoinstallation.
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
# File '../../src/include/ldap-server/wizards.rb', line 270 def LdapServerAutoSequence # Initialization dialog caption caption = _("LDAP Server Configuration") # Initialization dialog contents contents = Label(_("Initializing...")) Builtins.y2milestone("--> starting LdapServerAutoSequence") Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("ldap-server") Wizard.SetContentsButtons( caption, contents, "", Label.BackButton, Label.NextButton ) ret = InstProposalSequence() UI.CloseDialog Builtins.y2milestone("--> LdapServerAutoSequence finished ") deep_copy(ret) end |
- (Object) LdapServerSequence
Whole configuration of ldap-server
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 |
# File '../../src/include/ldap-server/wizards.rb', line 224 def LdapServerSequence aliases = { "read" => lambda { ReadDialog() }, "migrate" => lambda { MigrateSequence() }, "propose" => lambda { ProposalSequence() }, "main" => lambda { MainSequence() }, "writeservice" => lambda { WriteServiceDialog() }, "write" => lambda { WriteDialog() } } sequence = { "ws_start" => "read", "read" => { :abort => :abort, :initial => "propose", :migrate => "migrate", :next => "main", :reread => "writeservice" }, "migrate" => { :abort => :abort, :initial => "propose", :next => "main" }, "propose" => { :next => :next, :abort => :abort }, "main" => { :abort => :abort, :next => "write", :reread => "read" }, "writeservice" => { :reread => "read" }, "write" => { :abort => :abort, :next => :next } } Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("ldap-server") ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |
- (Object) MainSequence
Main workflow of the ldap-server configuration
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File '../../src/include/ldap-server/wizards.rb', line 26 def MainSequence # FIXME: adapt to your needs aliases = { "tree" => lambda { TreeDialog() }, "writeservice" => lambda do WriteServiceDialog() end } sequence = { "ws_start" => "tree", "tree" => { :abort => :abort, :back => :abort, :cancel => :abort, :next => :next, :reread => "writeservice", :empty => :empty }, "writeservice" => { :reread => :reread } } Wizard.SetDesktopTitleAndIcon("ldap-server") ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |
- (Object) MigrateSequence
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 |
# File '../../src/include/ldap-server/wizards.rb', line 177 def MigrateSequence # Initialization dialog caption caption = _("LDAP Server Configuration") # Initialization dialog contents contents = Label(_("Initializing...")) aliases = { "startup" => lambda { MigrationMainDialog() }, "proposal" => lambda { ProposalSequence() }, # "authconfig" : ``( MigrationDialog() ), "migrate" => lambda do DoMigration() end } sequence = { "ws_start" => "startup", "startup" => { :abort => :abort, :next => "migrate", :initial => "proposal" }, # "authconfig" : $[ # `next : "migrate" # ], "migrate" => { :next => :next }, "proposal" => { :next => :next } } Builtins.y2milestone("--> starting MigrateSequence") Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("ldap-server") ret = Sequencer.Run(aliases, sequence) Builtins.y2milestone("--> MigrateSequence finished ") UI.CloseDialog deep_copy(ret) end |
- (Object) ProposalSequence
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File '../../src/include/ldap-server/wizards.rb', line 108 def ProposalSequence # Initialization dialog caption caption = _("LDAP Server Configuration") # Initialization dialog contents contents = Label(_("Initializing...")) Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("ldap-server") Wizard.SetContentsButtons( caption, contents, "", Label.BackButton, Label.NextButton ) aliases = { "startup" => lambda { EnableServiceDialog() }, "servertype" => lambda { ServerTypeDialog() }, "tlssettings" => lambda { TlsConfigDialog() }, "database" => lambda { ProposalDialog() }, "summary" => lambda { SummaryDialog() }, "advanced" => lambda { MainSequence() }, "write" => lambda { WriteDialog() }, "slavesetup" => lambda { SlaveSetupDialog() }, "mastersetup" => lambda { MasterSetupDialog() }, "replicationsummary" => lambda { ReplicatonSetupSummaryDialog() } } sequence = { "ws_start" => "startup", "startup" => { :next => "servertype", :abort => :abort, :finish => :abort }, "servertype" => { :next => "tlssettings", :slave_setup => "slavesetup" }, "slavesetup" => { :next => "replicationsummary" }, "replicationsummary" => { :next => "write" }, "tlssettings" => { :next => "database" }, "database" => { :next => "summary", :mastersetup => "mastersetup", :abort => :abort }, "mastersetup" => { :next => "summary", :abort => :abort }, "summary" => { :next => "write", :abort => :abort, :advanced => "advanced" }, "advanced" => { :abort => :abort, :next => "write" }, "write" => { :abort => :abort, :next => :next } } Builtins.y2milestone("--> starting ProposalSequence") ret = Sequencer.Run(aliases, sequence) Builtins.y2milestone("<-- ProposalSequence finished ") UI.CloseDialog deep_copy(ret) end |