inspec/test/runner/test_local.rb
2015-10-06 00:06:13 +02:00

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