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, #stage1

Constructor Details

#initializeOSProberWidget

Returns a new instance of OSProberWidget.



183
184
185
186
187
# File 'src/lib/bootloader/grub2_widgets.rb', line 183

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



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

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

#initObject



200
201
202
# File 'src/lib/bootloader/grub2_widgets.rb', line 200

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

#labelObject



189
190
191
# File 'src/lib/bootloader/grub2_widgets.rb', line 189

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

#storeObject



204
205
206
# File 'src/lib/bootloader/grub2_widgets.rb', line 204

def store
  grub_default.os_prober.value = checked?
end