mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
29 lines
601 B
Ruby
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
|