mirror of
https://github.com/inspec/inspec
synced 2024-12-20 10:03:28 +00:00
25 lines
482 B
Ruby
25 lines
482 B
Ruby
# encoding: utf-8
|
|
require_relative 'helper'
|
|
require 'vulcano/backend'
|
|
|
|
backends = {}
|
|
backend_conf = {
|
|
'target' => 'ssh://vagrant@localhost',
|
|
'key_file' => '/root/.ssh/id_rsa',
|
|
}
|
|
|
|
backends[:specinfra_ssh] = proc {
|
|
Vulcano::Backend.create('specinfra', backend_conf).backend
|
|
}
|
|
|
|
backends[:ssh] = proc {
|
|
Vulcano::Backend.create('ssh', backend_conf).backend
|
|
}
|
|
|
|
tests = ARGV
|
|
|
|
backends.each do |type, get_backend|
|
|
tests.each do |test|
|
|
instance_eval(File.read(test))
|
|
end
|
|
end
|