Sha256: df5a49b6b8669090a13c906df33de1fc8960ddb671d023cd3cc6aca8363d4d01

Contents?: true

Size: 378 Bytes

Versions: 78

Compression:

Stored size: 378 Bytes

Contents

module Serverspec
  module Helper
    module Exec
      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
    end
  end
end

Version data entries

78 entries across 78 versions & 1 rubygems

Version Path
serverspec-0.7.4 lib/serverspec/helper/exec.rb
serverspec-0.7.3 lib/serverspec/helper/exec.rb
serverspec-0.7.2 lib/serverspec/helper/exec.rb
serverspec-0.7.1 lib/serverspec/helper/exec.rb
serverspec-0.7.0 lib/serverspec/helper/exec.rb
serverspec-0.6.30 lib/serverspec/helper/exec.rb
serverspec-0.6.29 lib/serverspec/helper/exec.rb
serverspec-0.6.28 lib/serverspec/helper/exec.rb
serverspec-0.6.27 lib/serverspec/helper/exec.rb
serverspec-0.6.26 lib/serverspec/helper/exec.rb
serverspec-0.6.25 lib/serverspec/helper/exec.rb
serverspec-0.6.24 lib/serverspec/helper/exec.rb
serverspec-0.6.23 lib/serverspec/helper/exec.rb
serverspec-0.6.22 lib/serverspec/helper/exec.rb
serverspec-0.6.21 lib/serverspec/helper/exec.rb
serverspec-0.6.20 lib/serverspec/helper/exec.rb
serverspec-0.6.19 lib/serverspec/helper/exec.rb
serverspec-0.6.18 lib/serverspec/helper/exec.rb
serverspec-0.6.17 lib/serverspec/helper/exec.rb
serverspec-0.6.16 lib/serverspec/helper/exec.rb