class Specinfra::Backend::BeakerBase

Attributes

example[R]

Example accessor

Public Instance Methods

ssh_exec!(node, command) click to toggle source

Execute the provided ssh command @param [String] command The command to be executed @return [Hash] Returns a hash containing :exit_status, :stdout and :stderr

# File lib/beaker-rspec/helpers/serverspec.rb, line 172
def ssh_exec!(node, command)
  r = on node, command, { acceptable_exit_codes: (0..127) }
  {
    exit_status: r.exit_code,
    stdout: r.stdout,
    stderr: r.stderr,
  }
end