Sha256: a665aad3297462b59d8b01e920ffa9ea0a025719a7de58d30fd99c2ff071d5c5

Contents?: true

Size: 485 Bytes

Versions: 6

Compression:

Stored size: 485 Bytes

Contents

RSpec.configure do |config|
  config.before do
    host = 'node0.server1.test'
    if config.host != host
      config.disable_sudo = true
      config.ssh.close if config.ssh
      config.host  = host
      options = Net::SSH::Config.for(config.host)
      options[:keys] = ["#{provision.project_root}/config/keys/environments/vagrant/id_rsa"]
      options[:forward_agent] = true
      user = 'puppet'
      config.ssh   = Net::SSH.start(config.host, user, options)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bebox-0.1.5 spec/puppet_spec_helper.rb
bebox-0.1.4 spec/puppet_spec_helper.rb
bebox-0.1.3 spec/puppet_spec_helper.rb
bebox-0.1.2 spec/puppet_spec_helper.rb
bebox-0.1.1 spec/puppet_spec_helper.rb
bebox-0.1.0 spec/puppet_spec_helper.rb