add docker backend support

Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
Dominik Richter 2015-08-23 22:17:53 -07:00
parent 3570295007
commit 22ce1d4b0d
2 changed files with 14 additions and 0 deletions

View file

@ -1,5 +1,6 @@
# encoding: utf-8
require 'vulcano/backend/core'
require 'vulcano/backend/docker'
require 'vulcano/backend/exec'
require 'vulcano/backend/ssh'
require 'vulcano/backend/winrm'

View file

@ -0,0 +1,13 @@
# encoding: utf-8
module Vulcano::Backend::Docker
def self.configure(conf)
host = conf['host'].to_s
Specinfra.configuration.backend = :docker
Specinfra.configuration.docker_container = host
end
end
Vulcano::Backend.add_module('docker', Vulcano::Backend::Docker)