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.



185
186
187
188
189
# File 'src/lib/bootloader/grub2_widgets.rb', line 185

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



195
196
197
198
199
200
# File 'src/lib/bootloader/grub2_widgets.rb', line 195

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

#initObject



202
203
204
# File 'src/lib/bootloader/grub2_widgets.rb', line 202

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

#labelObject



191
192
193
# File 'src/lib/bootloader/grub2_widgets.rb', line 191

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

#storeObject



206
207
208
# File 'src/lib/bootloader/grub2_widgets.rb', line 206

def store
  grub_default.os_prober.value = checked?
end