Class: Yast::StageClass
- Inherits:
-
Module
- Object
- Module
- Yast::StageClass
- Defined in:
- ../../library/general/src/modules/Stage.rb
Instance Method Summary (collapse)
-
- (Boolean) cont
continuing installation in target system.
-
- (Boolean) firstboot
Firstboot stage.
-
- (Boolean) initial
starting installation in inst-sys system.
- - (Object) main
-
- (Boolean) normal
normal, running system.
-
- (Boolean) reprobe
This flag indicates that a config module has been called due to a change in the system hardware that has been detected on boot time.
-
- (Object) Set(new_stage)
Set the installation stage.
-
- (String) stage
Get the current stage.
Instance Method Details
- (Boolean) cont
continuing installation in target system
95 96 97 |
# File '../../library/general/src/modules/Stage.rb', line 95 def cont stage == "continue" end |
- (Boolean) firstboot
Firstboot stage
101 102 103 |
# File '../../library/general/src/modules/Stage.rb', line 101 def firstboot stage == "firstboot" end |
- (Boolean) initial
starting installation in inst-sys system
89 90 91 |
# File '../../library/general/src/modules/Stage.rb', line 89 def initial stage == "initial" end |
- (Object) main
38 39 40 41 42 43 44 |
# File '../../library/general/src/modules/Stage.rb', line 38 def main textdomain "base" # Current stage @_stage = nil end |
- (Boolean) normal
normal, running system
107 108 109 |
# File '../../library/general/src/modules/Stage.rb', line 107 def normal stage == "normal" end |
- (Boolean) reprobe
This flag indicates that a config module has been called due to a change in the system hardware that has been detected on boot time.
115 116 117 |
# File '../../library/general/src/modules/Stage.rb', line 115 def reprobe stage == "hardware_probed" end |
- (Object) Set(new_stage)
Set the installation stage
73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File '../../library/general/src/modules/Stage.rb', line 73 def Set(new_stage) if !Builtins.contains( ["normal", "initial", "continue", "firstboot", "hardware_probed"], new_stage ) Builtins.y2error("Unknown stage %1", new_stage) end Builtins.y2milestone("setting stage to %1", new_stage) @_stage = new_stage nil end |
- (String) stage
Get the current stage
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File '../../library/general/src/modules/Stage.rb', line 48 def stage if @_stage == nil @_stage = "normal" arg_count = Builtins.size(WFM.Args) arg_no = 0 while Ops.less_than(arg_no, arg_count) if WFM.Args(arg_no) == "initial" @_stage = "initial" elsif WFM.Args(arg_no) == "continue" @_stage = "continue" elsif WFM.Args(arg_no) == "firstboot" @_stage = "firstboot" elsif WFM.Args(arg_no) == "reprobe" @_stage = "hardware_probed" end arg_no = Ops.add(arg_no, 1) end end @_stage end |