Module: Specinfra
- Defined in:
- lib/beaker-rspec/helpers/serverspec.rb,
lib/beaker-rspec/helpers/serverspec.rb,
lib/beaker-rspec/helpers/serverspec.rb
Overview
Override existing specinfra configuration to avoid conflicts with beaker’s shell, stdout, stderr defines
Defined Under Namespace
Modules: Backend, Configuration Classes: CommandFactory, Runner
Instance Method Summary collapse
-
#cur_example ⇒ Object
Accessor for current example.
-
#cygwin_backend ⇒ Object
The cygwin backend.
-
#exec_backend ⇒ Object
Backend for everything non-cygwin.
- #get_working_node ⇒ Object
Instance Method Details
#cur_example ⇒ Object
Accessor for current example
10 11 12 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 10 def cur_example Specinfra.backend.example end |
#cygwin_backend ⇒ Object
The cygwin backend
24 25 26 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 24 def cygwin_backend @cygwin_backend ||= Specinfra::Backend::BeakerCygwin.instance end |
#exec_backend ⇒ Object
Backend for everything non-cygwin
29 30 31 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 29 def exec_backend @exec_backend ||= Specinfra::Backend::BeakerExec.instance end |
#get_working_node ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/beaker-rspec/helpers/serverspec.rb', line 14 def get_working_node example = cur_example if example and example.[:node] example.[:node] else default_node end end |