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
180 181 182 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 180 def example @example end |
#ssh_exec!(node, command) ⇒ Hash
Execute the provided ssh command
187 188 189 190 191 192 193 194 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 187 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 |