Class: Installation::CIOIgnoreFinish

Inherits:
Object
  • Object
show all
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"

Instance Method Summary collapse

Constructor Details

#initializeCIOIgnoreFinish

Returns a new instance of CIOIgnoreFinish.


186
187
188
# File 'src/lib/installation/cio_ignore.rb', line 186

def initialize
  textdomain "installation"
end

Instance Method Details

#run(*args) ⇒ Object


190
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
# File 'src/lib/installation/cio_ignore.rb', line 190

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