Module: Yast::InstserverWizardsInclude
- Defined in:
- ../../src/include/instserver/wizards.rb
Instance Method Summary (collapse)
-
- (Object) AddSequence
Add a configuration of instserver.
- - (Object) EditSequence
- - (Object) initialize_instserver_wizards(include_target)
-
- (Object) InstserverSequence
Whole configuration of instserver.
-
- (Object) MainSequence
Main workflow of the instserver configuration.
-
- (Object) ServerSequence
Server Sequence.
Instance Method Details
- (Object) AddSequence
Add a configuration of instserver
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File '../../src/include/instserver/wizards.rb', line 26 def AddSequence aliases = { "sourceconfig" => lambda { SourceConfigDialog() }, "mediaconfig" => lambda( ) do MediaDialog() end } sequence = { "ws_start" => "sourceconfig", "sourceconfig" => { :abort => :abort, :next => "mediaconfig" }, "mediaconfig" => { :abort => :abort, :next => :next } } Sequencer.Run(aliases, sequence) end |
- (Object) EditSequence
42 43 44 45 46 47 48 49 50 51 |
# File '../../src/include/instserver/wizards.rb', line 42 def EditSequence aliases = { "sourceconfig" => lambda { SourceConfigDialog() } } sequence = { "ws_start" => "sourceconfig", "sourceconfig" => { :abort => :abort, :next => :next } } Sequencer.Run(aliases, sequence) end |
- (Object) initialize_instserver_wizards(include_target)
11 12 13 14 15 16 17 18 19 20 21 22 |
# File '../../src/include/instserver/wizards.rb', line 11 def initialize_instserver_wizards(include_target) Yast.import "UI" textdomain "instserver" Yast.import "Sequencer" Yast.import "Instserver" Yast.import "Wizard" Yast.include include_target, "instserver/complex.rb" Yast.include include_target, "instserver/dialogs.rb" end |
- (Object) InstserverSequence
Whole configuration of instserver
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File '../../src/include/instserver/wizards.rb', line 116 def InstserverSequence aliases = { "read" => [lambda { ReadDialog() }, true], "main" => lambda { MainSequence() }, "setup" => lambda { ServerSequence() }, "write" => lambda { WriteDialog() } } sequence = { "ws_start" => "read", "read" => { :abort => :abort, :setup => "setup", :next => "main" }, "setup" => { :next => "main", :abort => :abort }, "main" => { :abort => :abort, :next => "write" }, "write" => { :abort => :abort, :next => :next } } Wizard.CreateDialog Wizard.SetDesktopTitleAndIcon("instserver") ret = Sequencer.Run(aliases, sequence) UI.CloseDialog deep_copy(ret) end |
- (Object) MainSequence
Main workflow of the instserver configuration
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File '../../src/include/instserver/wizards.rb', line 85 def MainSequence aliases = { "overview" => lambda { OverviewDialog() }, "add" => [lambda { AddSequence() }, true], "edit" => [lambda { EditSequence() }, true], "server" => [lambda { ServerSequence() }, true] } start = Instserver.FirstDialog sequence = { "ws_start" => "overview", "overview" => { :abort => :abort, :next => :next, :add => "add", :edit => "edit", :config => "server" }, "server" => { :abort => :abort, :next => "overview" }, "add" => { :abort => :abort, :next => "overview" }, "edit" => { :abort => :abort, :next => "overview" } } ret = Sequencer.Run(aliases, sequence) deep_copy(ret) end |
- (Object) ServerSequence
Server Sequence
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 |
# File '../../src/include/instserver/wizards.rb', line 55 def ServerSequence aliases = { "main" => lambda { ServerDialog() }, "nfs" => lambda { NfsDialog() }, "http" => lambda { HttpDialog() }, "ftp" => lambda { FtpDialog() } } sequence = { "ws_start" => "main", "main" => { :abort => :abort, :nfs => "nfs", :http => "http", :ftp => "ftp", :next => :next }, "ftp" => { :abort => :abort, :next => :next }, "http" => { :abort => :abort, :next => :next }, "nfs" => { :abort => :abort, :next => :next } } Sequencer.Run(aliases, sequence) end |