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.9.8 lib/serverspec/helper/exec.rb
serverspec-0.9.7 lib/serverspec/helper/exec.rb
serverspec-0.9.6 lib/serverspec/helper/exec.rb
serverspec-0.9.5 lib/serverspec/helper/exec.rb
serverspec-0.9.4 lib/serverspec/helper/exec.rb
serverspec-0.9.3 lib/serverspec/helper/exec.rb
serverspec-0.9.2 lib/serverspec/helper/exec.rb
serverspec-0.9.1 lib/serverspec/helper/exec.rb
serverspec-0.9.0 lib/serverspec/helper/exec.rb
serverspec-0.8.1 lib/serverspec/helper/exec.rb
serverspec-0.8.0 lib/serverspec/helper/exec.rb
serverspec-0.7.13 lib/serverspec/helper/exec.rb
serverspec-0.7.12 lib/serverspec/helper/exec.rb
serverspec-0.7.11 lib/serverspec/helper/exec.rb
serverspec-0.7.10 lib/serverspec/helper/exec.rb
serverspec-0.7.9 lib/serverspec/helper/exec.rb
serverspec-0.7.8 lib/serverspec/helper/exec.rb
serverspec-0.7.7 lib/serverspec/helper/exec.rb
serverspec-0.7.6 lib/serverspec/helper/exec.rb
serverspec-0.7.5 lib/serverspec/helper/exec.rb