Sha256: 8c387dc604e94fa1f8d3aec89e5333bb5bcbf27b73013812ec350e8e166452bd
Contents?: true
Size: 428 Bytes
Versions: 2
Compression:
Stored size: 428 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rundock-0.2.0 | spec/integration/spec_helper.rb |
rundock-0.1.0 | spec/integration/spec_helper.rb |