Class: Bootloader::OsProber
- Inherits:
-
Object
- Object
- Bootloader::OsProber
- Defined in:
- src/lib/bootloader/os_prober.rb
Overview
Helper methods for the os-prober package
Class Method Summary collapse
-
.arch_supported? ⇒ Boolean
Check if os-prober is supported on this architecture.
-
.available? ⇒ Boolean
Check if os-prober is supported on this architecture and if the package is available.
-
.package_available? ⇒ Boolean
Check if the os-prober package is available for installation.
- .package_name ⇒ Object
Class Method Details
.arch_supported? ⇒ Boolean
Check if os-prober is supported on this architecture
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
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
23 24 25 |
# File 'src/lib/bootloader/os_prober.rb', line 23 def package_available? Yast::Package.Available(package_name) end |
.package_name ⇒ Object
12 13 14 |
# File 'src/lib/bootloader/os_prober.rb', line 12 def package_name "os-prober" end |