mirror of
https://github.com/inspec/inspec
synced 2024-12-24 20:13:16 +00:00
a72dc86442
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
23 lines
444 B
Ruby
23 lines
444 B
Ruby
# encoding: utf-8
|
|
require_relative 'helper'
|
|
require 'vulcano/backend'
|
|
|
|
backends = {}
|
|
|
|
backends[:local] = proc {
|
|
Vulcano::Backend.create('local', {}).backend
|
|
}
|
|
|
|
backends[:specinfra_local] = proc {
|
|
c = { 'backend' => 'exec' }
|
|
opt = Vulcano::Backend.target_config(c)
|
|
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
|