Class: Installation::CIOIgnoreFinish
- Inherits:
-
Object
- Object
- Installation::CIOIgnoreFinish
- Includes:
- Yast::I18n, Yast::Logger
- Defined in:
- src/lib/installation/cio_ignore.rb
Constant Summary collapse
- USABLE_WORKFLOWS =
[ :installation, :live_installation, :autoinst ].freeze
- YAST_BASH_PATH =
Yast::Path.new ".target.bash_output"
- YAST_LOCAL_BASH_PATH =
Yast::Path.new ".local.bash_output"
Instance Method Summary collapse
-
#initialize ⇒ CIOIgnoreFinish
constructor
A new instance of CIOIgnoreFinish.
- #run(*args) ⇒ Object
Constructor Details
#initialize ⇒ CIOIgnoreFinish
Returns a new instance of CIOIgnoreFinish.
187 188 189 |
# File 'src/lib/installation/cio_ignore.rb', line 187 def initialize textdomain "installation" end |
Instance Method Details
#run(*args) ⇒ Object
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 |
# File 'src/lib/installation/cio_ignore.rb', line 191 def run(*args) func = args.first param = args[1] || {} log.debug "cio ignore finish client called with #{func} and #{param}" case func when "Info" Yast.import "Arch" usable = Yast::Arch.s390 { "steps" => 1, # progress step title "title" => _( "Blacklisting Devices..." ), "when" => usable ? USABLE_WORKFLOWS : [] } when "Write" write_cio_setting write_autoconf_setting nil else raise "Unknown action #{func} passed as first parameter" end end |