Module: Radfish::Core::Boot

Defined in:
lib/radfish/core/boot.rb

Instance Method Summary collapse

Instance Method Details

#boot_configObject

Raises:

  • (NotImplementedError)


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_setupObject

Raises:

  • (NotImplementedError)


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_cdObject

Raises:

  • (NotImplementedError)


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_diskObject

Raises:

  • (NotImplementedError)


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_pxeObject

Raises:

  • (NotImplementedError)


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_usbObject

Raises:

  • (NotImplementedError)


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_overrideObject

Raises:

  • (NotImplementedError)


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_devicesObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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