mirror of
https://github.com/inspec/inspec
synced 2025-01-26 03:45:40 +00:00
a72dc86442
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 = {
|
|
'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
|