Class: Bootloader::DeviceMapDialog

Inherits:
Object
  • Object
show all
Includes:
Yast::I18n, Yast::UIShortcuts
Defined in:
src/lib/bootloader/device_map_dialog.rb

Overview

Represents dialog for modification of device map

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(device_map) ⇒ DeviceMapDialog

Returns a new instance of DeviceMapDialog.



23
24
25
# File 'src/lib/bootloader/device_map_dialog.rb', line 23

def initialize(device_map)
  @device_map = device_map
end

Class Method Details

.run(device_map) ⇒ Object



19
20
21
# File 'src/lib/bootloader/device_map_dialog.rb', line 19

def self.run(device_map)
  new(device_map).run
end

Instance Method Details

#runObject



27
28
29
30
31
32
33
34
35
36
37
# File 'src/lib/bootloader/device_map_dialog.rb', line 27

def run
  textdomain "bootloader"

  return unless create_dialog

  begin
    controller_loop
  ensure
    close_dialog
  end
end