Method: Beaker::HostPrebuiltSteps#validate_host

Defined in:
lib/beaker/host_prebuilt_steps.rb

#validate_host(host, opts) ⇒ Object

Validate that hosts are prepared to be used as SUTs, if packages are missing attempt to install them.

Parameters:

  • host (Host, Array<Host>, String, Symbol)

    One or more hosts to act upon

  • opts (Hash{Symbol=>String})

    Options to alter execution.

Options Hash (opts):



71
72
73
74
75
76
77
78
# File 'lib/beaker/host_prebuilt_steps.rb', line 71

def validate_host host, opts
  logger = opts[:logger]
  block_on host do |host|
    check_and_install_packages_if_needed(host, host_packages(host))
  end
rescue => e
  report_and_raise(logger, e, "validate")
end