Sha256: d1c120b23931b2218b2686134e46beaa92d9c918e10bf60cf2504a3126d608aa

Contents?: true

Size: 457 Bytes

Versions: 50

Compression:

Stored size: 457 Bytes

Contents

require 'serverspec'
require 'net/ssh'

if ENV['TARGET_HOST'] != 'localhost'

  set :backend, :ssh
  host = ENV['TARGET_HOST']

  options = Net::SSH::Config.for(host, ["#{ENV['HOME']}/.ssh/config_rundock_spec_#{ENV['TARGET_HOST']}"])

  options[:user] ||= Etc.getlogin
  options[:paranoid] = false

  set :host,        options[:host_name] || host
  set :ssh_options, options
  set :request_pty, true
  set :disable_sudo, true
else
  set :backend, :exec
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
rundock-1.2.1 spec/integration/spec_helper.rb
rundock-1.2.0 spec/integration/spec_helper.rb
rundock-1.1.7 spec/integration/spec_helper.rb
rundock-1.1.6 spec/integration/spec_helper.rb
rundock-1.1.5 spec/integration/spec_helper.rb
rundock-1.1.4 spec/integration/spec_helper.rb
rundock-1.1.3 spec/integration/spec_helper.rb
rundock-1.1.2 spec/integration/spec_helper.rb
rundock-1.1.1 spec/integration/spec_helper.rb
rundock-1.1.0 spec/integration/spec_helper.rb
rundock-1.0.8 spec/integration/spec_helper.rb
rundock-1.0.7 spec/integration/spec_helper.rb
rundock-1.0.6 spec/integration/spec_helper.rb
rundock-1.0.5 spec/integration/spec_helper.rb
rundock-1.0.4 spec/integration/spec_helper.rb
rundock-1.0.2 spec/integration/spec_helper.rb
rundock-1.0.1 spec/integration/spec_helper.rb
rundock-1.0.0 spec/integration/spec_helper.rb
rundock-0.5.8 spec/integration/spec_helper.rb
rundock-0.5.7 spec/integration/spec_helper.rb