2015-09-24 18:51:56 +00:00
|
|
|
# encoding: utf-8
|
|
|
|
require_relative 'helper'
|
|
|
|
require 'vulcano/backend'
|
|
|
|
|
|
|
|
backends = {}
|
2015-10-05 21:46:33 +00:00
|
|
|
backend_conf = {
|
2015-09-25 12:09:41 +00:00
|
|
|
'target' => 'ssh://vagrant@localhost',
|
|
|
|
'key_file' => '/root/.ssh/id_rsa',
|
2015-10-05 21:46:33 +00:00
|
|
|
}
|
2015-09-24 18:51:56 +00:00
|
|
|
|
|
|
|
backends[:specinfra_ssh] = proc {
|
2015-10-05 21:46:33 +00:00
|
|
|
Vulcano::Backend.create('specinfra', backend_conf).backend
|
2015-09-24 18:51:56 +00:00
|
|
|
}
|
|
|
|
|
2015-09-25 12:09:41 +00:00
|
|
|
backends[:ssh] = proc {
|
2015-10-05 21:46:33 +00:00
|
|
|
Vulcano::Backend.create('ssh', backend_conf).backend
|
2015-09-25 12:09:41 +00:00
|
|
|
}
|
|
|
|
|
2015-09-24 18:51:56 +00:00
|
|
|
tests = ARGV
|
|
|
|
|
|
|
|
backends.each do |type, get_backend|
|
|
|
|
tests.each do |test|
|
|
|
|
instance_eval(File.read(test))
|
|
|
|
end
|
|
|
|
end
|