lib/serverspec/helper/ssh.rb in serverspec-0.5.5 vs lib/serverspec/helper/ssh.rb in serverspec-0.5.6

- old
+ new

@@ -1,8 +1,11 @@ module Serverspec module Helper module Ssh def backend(commands_object=nil) + if ! respond_to?(:commands) + commands_object = Serverspec::Commands::Base.new + end instance = Serverspec::Backend::Ssh.instance instance.set_commands(commands_object || commands) instance end end