inspec/test/runner/test_local.rb
Christoph Hartmann 8fff2ee989 add author header
2015-10-06 18:55:44 +02:00

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