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.11.5 lib/serverspec/helper/exec.rb
serverspec-0.11.4 lib/serverspec/helper/exec.rb
serverspec-0.11.3 lib/serverspec/helper/exec.rb
serverspec-0.11.2 lib/serverspec/helper/exec.rb
serverspec-0.11.1 lib/serverspec/helper/exec.rb
serverspec-0.11.0 lib/serverspec/helper/exec.rb
serverspec-0.10.13 lib/serverspec/helper/exec.rb
serverspec-0.10.12 lib/serverspec/helper/exec.rb
serverspec-0.10.11 lib/serverspec/helper/exec.rb
serverspec-0.10.10 lib/serverspec/helper/exec.rb
serverspec-0.10.9 lib/serverspec/helper/exec.rb
serverspec-0.10.8 lib/serverspec/helper/exec.rb
serverspec-0.10.7 lib/serverspec/helper/exec.rb
serverspec-0.10.6 lib/serverspec/helper/exec.rb
serverspec-0.10.5 lib/serverspec/helper/exec.rb
serverspec-0.10.4 lib/serverspec/helper/exec.rb
serverspec-0.10.3 lib/serverspec/helper/exec.rb
serverspec-0.10.2 lib/serverspec/helper/exec.rb
serverspec-0.10.1 lib/serverspec/helper/exec.rb
serverspec-0.10.0 lib/serverspec/helper/exec.rb