Module: Serverspec::Helper::Exec
- Defined in:
- lib/serverspec/helper/exec.rb
Instance Method Summary collapse
Instance Method Details
#backend(commands_object = nil) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/serverspec/helper/exec.rb', line 4 def backend(commands_object=nil) if commands_object.nil? && ! respond_to?(:commands) commands_object = Serverspec::Commands::Base.new end instance = Serverspec::Backend::Exec.instance instance.set_commands(commands_object || commands) instance end |