require 'serverspec'
require 'net/ssh'
require 'lib/docker'
require 'lib/vagrant'

include SpecInfra::Helper::Exec
include SpecInfra::Helper::DetectOS
include SpecInfra::Helper::Ssh

RSpec.configure do |c|
  c.before :all do
    # TODO switch docker vs vagrant
    d = Docker.new
    c.host = d.ssh_host
    opts = Net::SSH::Config.for(c.host)
    opts[:keys] = d.ssh_keys
    opts[:port] = d.ssh_port
    c.ssh = Net::SSH.start(d.ssh_host, d.ssh_user, opts)
  end
end

# TODO switch docker vs vagrant

require 'serverspec'
require 'net/ssh'
require 'lib/docker'
require 'lib/vagrant'

include SpecInfra::Helper::Exec
include SpecInfra::Helper::DetectOS
include SpecInfra::Helper::Ssh

RSpec.configure do |c|
  c.before :all do
    d = Docker.new
    c.host = d.ssh_host
    opts = Net::SSH::Config.for(c.host)
    opts[:keys] = d.ssh_keys
    opts[:port] = d.ssh_port
    c.ssh = Net::SSH.start(d.ssh_host, d.ssh_user, opts)
  end
end

Move TODOs to the beginning of files
[tdd] Move TODOs to the beginning of files
