Class: Specinfra::Backend::BeakerBase
- Inherits:
-
Base
- Object
- Base
- Specinfra::Backend::BeakerBase
- Defined in:
- lib/beaker-rspec/helpers/serverspec.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#example ⇒ Object
readonly
Example accessor.
Instance Method Summary collapse
-
#ssh_exec!(node, command) ⇒ Hash
Execute the provided ssh command.
Instance Attribute Details
#example ⇒ Object (readonly)
Example accessor
167 168 169 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 167 def example @example end |
Instance Method Details
#ssh_exec!(node, command) ⇒ Hash
Execute the provided ssh command
172 173 174 175 176 177 178 179 |
# 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 |