Class: Yast::GetInstArgsClass
- Inherits:
-
Module
- Object
- Module
- Yast::GetInstArgsClass
- Defined in:
- ../../src/modules/GetInstArgs.rb
Instance Method Summary (collapse)
-
- (Hash) argmap
Returns map of client parameters.
-
- (Boolean) automatic_configuration
Is the automatic configuraton just in progress?.
-
- (Hash) Buttons(back, _next)
Returns map of client parameters only with keys: “enable_back” and “enable_next”.
-
- (Hash) ButtonsProposal(back, _next, proposal_name)
Returns map of client parameters only with keys: “enable_back”, “enable_next”, and “proposal”.
-
- (Boolean) enable_back
Should be the [Back] button enabled?.
-
- (Boolean) enable_next
Should be the [Next] button enabled?.
-
- (Boolean) going_back
Are we going back from the previous dialog?.
- - (Object) Init
- - (Object) main
-
- (String) proposal
Returns name of the proposal.
Instance Method Details
- (Hash) argmap
Returns map of client parameters
GetInstArgs::argmap() -> $[ “enable_back” : true, “enable_next” : true, “going_back” : true, “anything” : “yes, of course”, ]
113 114 115 116 |
# File '../../src/modules/GetInstArgs.rb', line 113 def argmap Init() deep_copy(@args) end |
- (Boolean) automatic_configuration
Is the automatic configuraton just in progress?
60 61 62 63 |
# File '../../src/modules/GetInstArgs.rb', line 60 def automatic_configuration Init() Ops.get_boolean(@args, "AutomaticConfiguration", false) end |
- (Hash) Buttons(back, _next)
Returns map of client parameters only with keys: "enable_back" and "enable_next"
GetInstArgs::Buttons() -> $[ “enable_back” : false, “enable_next” : true ]
147 148 149 150 151 152 |
# File '../../src/modules/GetInstArgs.rb', line 147 def Buttons(back, _next) __args = {} Ops.set(__args, "enable_back", back) Ops.set(__args, "enable_next", _next) deep_copy(__args) end |
- (Hash) ButtonsProposal(back, _next, proposal_name)
Returns map of client parameters only with keys: "enable_back", "enable_next", and "proposal"
GetInstArgs::ButtonsProposal() -> $[ “enable_back” : true, “enable_next” : true, “proposal” : “initial” ]
129 130 131 132 133 134 135 |
# File '../../src/modules/GetInstArgs.rb', line 129 def ButtonsProposal(back, _next, proposal_name) __args = {} Ops.set(__args, "enable_back", back) Ops.set(__args, "enable_next", _next) Ops.set(__args, "proposal", proposal_name) deep_copy(__args) end |
- (Boolean) enable_back
Should be the [Back] button enabled?
76 77 78 79 |
# File '../../src/modules/GetInstArgs.rb', line 76 def enable_back Init() Ops.get_boolean(@args, "enable_back", false) end |
- (Boolean) enable_next
Should be the [Next] button enabled?
68 69 70 71 |
# File '../../src/modules/GetInstArgs.rb', line 68 def enable_next Init() Ops.get_boolean(@args, "enable_next", false) end |
- (Boolean) going_back
Are we going back from the previous dialog?
84 85 86 87 |
# File '../../src/modules/GetInstArgs.rb', line 84 def going_back Init() Ops.get_boolean(@args, "going_back", false) end |
- (Object) Init
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File '../../src/modules/GetInstArgs.rb', line 39 def Init # Check arguments @args = {} i = 0 # assign to args first available map # (in proposals, first argument is string - bnc#475169) while Ops.less_than(i, Builtins.size(WFM.Args)) if Ops.is_map?(WFM.Args(i)) @args = Convert.to_map(WFM.Args(i)) break end i = Ops.add(i, 1) end Builtins.y2milestone("args=%1", @args) nil end |
- (Object) main
34 35 36 37 |
# File '../../src/modules/GetInstArgs.rb', line 34 def main @args = {} end |
- (String) proposal
Returns name of the proposal
GetInstArgs::proposal() -> “initial” GetInstArgs::proposal() -> "network" GetInstArgs::proposal() -> "hardware"
97 98 99 100 |
# File '../../src/modules/GetInstArgs.rb', line 97 def proposal Init() Ops.get_string(@args, "proposal", "") end |