Class: Bootloader::OsProber

Inherits:
Object
  • Object
show all
Defined in:
src/lib/bootloader/os_prober.rb

Overview

Helper methods for the os-prober package

Class Method Summary collapse

Class Method Details

.arch_supported?Boolean

Check if os-prober is supported on this architecture

Returns:

  • (Boolean)


28
29
30
# File 'src/lib/bootloader/os_prober.rb', line 28

def arch_supported?
  !Yast::Arch.s390
end

.available?Boolean

Check if os-prober is supported on this architecture and if the package is available

Returns:

  • (Boolean)


18
19
20
# File 'src/lib/bootloader/os_prober.rb', line 18

def available?
  arch_supported? && package_available?
end

.package_available?Boolean

Check if the os-prober package is available for installation

Returns:

  • (Boolean)


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

def package_available?
  Yast::Package.Available(package_name)
end

.package_nameObject



12
13
14
# File 'src/lib/bootloader/os_prober.rb', line 12

def package_name
  "os-prober"
end