Class: Bootloader::Grub2Widget::DeviceMapWidget

Inherits:
CWM::PushButton
  • Object
show all
Includes:
Grub2Helper
Defined in:
src/lib/bootloader/grub2_widgets.rb

Overview

Represents button that open Device Map edit dialog

Instance Method Summary collapse

Methods included from Grub2Helper

#grub2, #grub_default, #password, #stage1

Instance Method Details

#handle ⇒ Object



735
736
737
738
739
# File 'src/lib/bootloader/grub2_widgets.rb', line 735

def handle
  DeviceMapDialog.run(grub2.device_map)

  nil
end

#help ⇒ Object



723
724
725
726
727
728
729
730
731
732
733
# File 'src/lib/bootloader/grub2_widgets.rb', line 723

def help
  textdomain "bootloader"

  _(
    "<p><b>Edit Disk Boot Order</b>\n" \
    "allows to specify the order of the disks according to the order in BIOS. Use\n" \
    "the <b>Up</b> and <b>Down</b> buttons to reorder the disks.\n" \
    "To add a disk, push <b>Add</b>.\n" \
    "To remove a disk, push <b>Remove</b>.</p>"
  )
end

#label ⇒ Object



717
718
719
720
721
# File 'src/lib/bootloader/grub2_widgets.rb', line 717

def label
  textdomain "bootloader"

  _("&Edit Disk Boot Order")
end