mirror of
https://github.com/inspec/inspec
synced 2024-11-28 07:30:50 +00:00
25 lines
471 B
Ruby
25 lines
471 B
Ruby
# encoding: utf-8
|
|
# author: Dominik Richter
|
|
|
|
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
|