Class: Yast::StageClass
- Inherits:
-
Module
- Object
- Module
- Yast::StageClass
- Defined in:
- library/general/src/modules/Stage.rb
Instance Method Summary collapse
-
#cont ⇒ Boolean
continuing installation in target system.
-
#firstboot ⇒ Boolean
Firstboot stage.
-
#initial ⇒ Boolean
starting installation in inst-sys system.
- #main ⇒ Object
-
#normal ⇒ Boolean
normal, running system.
-
#reprobe ⇒ Boolean
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.
-
#Set(new_stage) ⇒ Object
Set the installation stage.
-
#stage ⇒ String
Get the current stage.
Instance Method Details
#cont ⇒ Boolean
continuing installation in target system
93 94 95 |
# File 'library/general/src/modules/Stage.rb', line 93 def cont stage == "continue" end |
#firstboot ⇒ Boolean
Firstboot stage
99 100 101 |
# File 'library/general/src/modules/Stage.rb', line 99 def firstboot stage == "firstboot" end |
#initial ⇒ Boolean
starting installation in inst-sys system
87 88 89 |
# File 'library/general/src/modules/Stage.rb', line 87 def initial stage == "initial" end |
#main ⇒ Object
36 37 38 39 40 41 |
# File 'library/general/src/modules/Stage.rb', line 36 def main textdomain "base" # Current stage @_stage = nil end |
#normal ⇒ Boolean
normal, running system
105 106 107 |
# File 'library/general/src/modules/Stage.rb', line 105 def normal stage == "normal" end |
#reprobe ⇒ Boolean
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.
113 114 115 |
# File 'library/general/src/modules/Stage.rb', line 113 def reprobe stage == "hardware_probed" end |
#Set(new_stage) ⇒ Object
Set the installation stage
71 72 73 74 75 76 77 78 79 80 81 82 83 |
# File 'library/general/src/modules/Stage.rb', line 71 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 |
#stage ⇒ String
Get the current stage
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'library/general/src/modules/Stage.rb', line 45 def stage if @_stage.nil? @_stage = "normal" arg_count = Builtins.size(WFM.Args) arg_no = 0 while Ops.less_than(arg_no, arg_count) case WFM.Args(arg_no) when "initial" @_stage = "initial" when "continue" @_stage = "continue" when "firstboot" @_stage = "firstboot" when "reprobe" @_stage = "hardware_probed" end arg_no = Ops.add(arg_no, 1) end end @_stage end |