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