Class: Specinfra::Backend::BeakerDispatch
- Inherits:
-
BeakerBase
- Object
- Base
- BeakerBase
- Specinfra::Backend::BeakerDispatch
- Defined in:
- lib/beaker-rspec/helpers/serverspec.rb
Instance Method Summary collapse
- #add_pre_command(cmd) ⇒ Object
- #build_command(cmd) ⇒ Object
- #dispatch_method(meth, *args) ⇒ Object
- #run_command(cmd, opts = {}) ⇒ Object
Methods inherited from BeakerBase
Instance Method Details
#add_pre_command(cmd) ⇒ Object
208 209 210 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 208 def add_pre_command(cmd) dispatch_method('add_pre_command', cmd) end |
#build_command(cmd) ⇒ Object
204 205 206 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 204 def build_command(cmd) dispatch_method('build_command', cmd) end |
#dispatch_method(meth, *args) ⇒ Object
192 193 194 195 196 197 198 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 192 def dispatch_method(meth, *args) if get_working_node['platform'] =~ /windows/ cygwin_backend.send(meth, *args) else exec_backend.send(meth, *args) end end |
#run_command(cmd, opts = {}) ⇒ Object
200 201 202 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 200 def run_command(cmd, opts={}) dispatch_method('run_command', cmd, opts) end |