inspec/test/runner/test_ssh.rb
Christoph Hartmann 8fff2ee989 add author header
2015-10-06 18:55:44 +02:00

29 lines
601 B
Ruby

# encoding: utf-8
# author: Dominik Richter
require_relative 'helper'
require 'vulcano/backend'
backends = {}
backend_conf = {
'target' => 'ssh://vagrant@localhost',
'key_file' => '/root/.ssh/id_rsa',
}
backends[:specinfra_ssh] = proc {
conf = Vulcano::Backend.target_config(backend_conf)
Vulcano::Backend.create('specinfra', conf).backend
}
backends[:ssh] = proc {
conf = Vulcano::Backend.target_config(backend_conf)
Vulcano::Backend.create('ssh', conf).backend
}
tests = ARGV
backends.each do |type, get_backend|
tests.each do |test|
instance_eval(File.read(test))
end
end