mirror of
https://github.com/inspec/inspec
synced 2024-11-30 16:39:20 +00:00
31a960e2b6
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
27 lines
574 B
Ruby
27 lines
574 B
Ruby
# encoding: utf-8
|
|
require_relative 'helper'
|
|
require 'vulcano/backend'
|
|
|
|
backends = {}
|
|
backend_conf = Vulcano::Backend.target_config({
|
|
'target' => 'ssh://vagrant@localhost',
|
|
'key_file' => '/root/.ssh/id_rsa',
|
|
})
|
|
|
|
backends[:specinfra_ssh] = proc {
|
|
backend_class = Vulcano::Backend.registry['specinfra']
|
|
backend_class.new(backend_conf)
|
|
}
|
|
|
|
backends[:ssh] = proc {
|
|
backend_class = Vulcano::Backend.registry['ssh']
|
|
backend_class.new(backend_conf)
|
|
}
|
|
|
|
tests = ARGV
|
|
|
|
backends.each do |type, get_backend|
|
|
tests.each do |test|
|
|
instance_eval(File.read(test))
|
|
end
|
|
end
|