Class: Bootloader::Grub2Widget::OSProberWidget

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

Overview

Represents if os prober should be run

Instance Method Summary collapse

Methods included from Grub2Helper

#grub2, #grub_default, #password, #sections, #stage1

Constructor Details

#initializeOSProberWidget

Returns a new instance of OSProberWidget.



245
246
247
248
249
# File 'src/lib/bootloader/grub2_widgets.rb', line 245

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



255
256
257
258
259
260
# File 'src/lib/bootloader/grub2_widgets.rb', line 255

def help
  _(
    "<p><b>Probe Foreign OS</b> by means of os-prober for multiboot with " \
    "other foreign distribution </p>"
  )
end

#initObject



262
263
264
# File 'src/lib/bootloader/grub2_widgets.rb', line 262

def init
  self.value = grub_default.os_prober.enabled?
end

#labelObject



251
252
253
# File 'src/lib/bootloader/grub2_widgets.rb', line 251

def label
  _("Pro&be Foreign OS")
end

#storeObject



266
267
268
# File 'src/lib/bootloader/grub2_widgets.rb', line 266

def store
  grub_default.os_prober.value = checked?
end