Class: Specinfra::Backend::BeakerDispatch
- Inherits:
-
BeakerBase
- Object
- Base
- BeakerBase
- Specinfra::Backend::BeakerDispatch
- Defined in:
- lib/beaker-rspec/helpers/serverspec.rb
Instance Attribute Summary
Attributes inherited from BeakerBase
Instance Method Summary collapse
- #add_pre_command(cmd) ⇒ Object
- #build_command(cmd) ⇒ Object
- #dispatch_method(meth) ⇒ Object
- #run_command(cmd, opts = {}) ⇒ Object
Methods inherited from BeakerBase
Instance Method Details
#add_pre_command(cmd) ⇒ Object
167 168 169 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 167 def add_pre_command(cmd) dispatch_method('add_pre_command', cmd) end |
#build_command(cmd) ⇒ Object
163 164 165 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 163 def build_command(cmd) dispatch_method('build_command', cmd) end |
#dispatch_method(meth) ⇒ Object
151 152 153 154 155 156 157 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 151 def dispatch_method(meth, *) if get_working_node['platform'].include?('windows') cygwin_backend.send(meth, *) else exec_backend.send(meth, *) end end |
#run_command(cmd, opts = {}) ⇒ Object
159 160 161 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 159 def run_command(cmd, opts = {}) dispatch_method('run_command', cmd, opts) end |