mirror of
https://github.com/inspec/inspec
synced 2024-12-20 01:54:08 +00:00
22 lines
404 B
Ruby
22 lines
404 B
Ruby
# encoding: utf-8
|
|
require_relative 'helper'
|
|
require 'vulcano/backend'
|
|
|
|
backends = {}
|
|
|
|
backends[:local] = proc {
|
|
Vulcano::Backend.create('local', {}).backend
|
|
}
|
|
|
|
backends[:specinfra_local] = proc {
|
|
opt = { 'backend' => 'exec' }
|
|
Vulcano::Backend.create('specinfra', opt).backend
|
|
}
|
|
|
|
tests = ARGV
|
|
|
|
backends.each do |type, get_backend|
|
|
tests.each do |test|
|
|
instance_eval(File.read(test))
|
|
end
|
|
end
|