Class: Specinfra::Runner
- Inherits:
-
Object
- Object
- Specinfra::Runner
- Defined in:
- lib/beaker-rspec/helpers/serverspec.rb
Overview
Rewrite the runner to use the appropriate backend based upon platform information
Class Method Summary collapse
Class Method Details
.method_missing(meth, *args) ⇒ Object
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 126 def self.method_missing(meth, *args) backend = Specinfra.backend node = get_working_node if node['platform'] !~ /windows/ processor = Specinfra::Processor if processor.respond_to?(meth) processor.send(meth, *args) elsif backend.respond_to?(meth) backend.send(meth, *args) else run(meth, *args) end else if backend.respond_to?(meth) backend.send(meth, *args) else run(meth, *args) end end end |