Module: Radfish::Core::Boot
- Defined in:
- lib/radfish/core/boot.rb
Instance Method Summary collapse
- #boot_config ⇒ Object
- #boot_to_bios_setup ⇒ Object
- #boot_to_cd ⇒ Object
- #boot_to_disk ⇒ Object
- #boot_to_pxe ⇒ Object
- #boot_to_usb ⇒ Object
- #clear_boot_override ⇒ Object
- #get_boot_devices ⇒ Object
- #set_boot_order(devices) ⇒ Object
- #set_boot_override(target, persistence: nil, mode: nil) ⇒ Object
-
#set_one_time_cd_boot(reboot: false) ⇒ Object
Convenience: one-time boot to the virtual CD.
Instance Method Details
#boot_config ⇒ Object
6 7 8 |
# File 'lib/radfish/core/boot.rb', line 6 def boot_config raise NotImplementedError, "Adapter must implement #boot_config" end |
#boot_to_bios_setup ⇒ Object
51 52 53 |
# File 'lib/radfish/core/boot.rb', line 51 def boot_to_bios_setup raise NotImplementedError, "Adapter must implement #boot_to_bios_setup" end |
#boot_to_cd ⇒ Object
34 35 36 |
# File 'lib/radfish/core/boot.rb', line 34 def boot_to_cd raise NotImplementedError, "Adapter must implement #boot_to_cd" end |
#boot_to_disk ⇒ Object
30 31 32 |
# File 'lib/radfish/core/boot.rb', line 30 def boot_to_disk raise NotImplementedError, "Adapter must implement #boot_to_disk" end |
#boot_to_pxe ⇒ Object
26 27 28 |
# File 'lib/radfish/core/boot.rb', line 26 def boot_to_pxe raise NotImplementedError, "Adapter must implement #boot_to_pxe" end |
#boot_to_usb ⇒ Object
47 48 49 |
# File 'lib/radfish/core/boot.rb', line 47 def boot_to_usb raise NotImplementedError, "Adapter must implement #boot_to_usb" end |
#clear_boot_override ⇒ Object
14 15 16 |
# File 'lib/radfish/core/boot.rb', line 14 def clear_boot_override raise NotImplementedError, "Adapter must implement #clear_boot_override" end |
#get_boot_devices ⇒ Object
22 23 24 |
# File 'lib/radfish/core/boot.rb', line 22 def get_boot_devices raise NotImplementedError, "Adapter must implement #get_boot_devices" end |
#set_boot_order(devices) ⇒ Object
18 19 20 |
# File 'lib/radfish/core/boot.rb', line 18 def set_boot_order(devices) raise NotImplementedError, "Adapter must implement #set_boot_order" end |
#set_boot_override(target, persistence: nil, mode: nil) ⇒ Object
10 11 12 |
# File 'lib/radfish/core/boot.rb', line 10 def set_boot_override(target, persistence: nil, mode: nil) raise NotImplementedError, "Adapter must implement #set_boot_override" end |
#set_one_time_cd_boot(reboot: false) ⇒ Object
Convenience: one-time boot to the virtual CD. Default delegates to the adapter's standard
Redfish boot override (boot_to_cd, which defaults to a one-time override). Adapters with a
more reliable vendor path (e.g. Dell's SCP ServerBoot) override this. reboot: is accepted
for signature parity with those overrides; the default does not reboot -- the caller cycles
power (the app's install_os! does).
43 44 45 |
# File 'lib/radfish/core/boot.rb', line 43 def set_one_time_cd_boot(reboot: false) boot_to_cd end |