mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
add docker backend support
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
This commit is contained in:
parent
3570295007
commit
22ce1d4b0d
2 changed files with 14 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
require 'vulcano/backend/core'
|
require 'vulcano/backend/core'
|
||||||
|
require 'vulcano/backend/docker'
|
||||||
require 'vulcano/backend/exec'
|
require 'vulcano/backend/exec'
|
||||||
require 'vulcano/backend/ssh'
|
require 'vulcano/backend/ssh'
|
||||||
require 'vulcano/backend/winrm'
|
require 'vulcano/backend/winrm'
|
||||||
|
|
13
lib/vulcano/backend/docker.rb
Normal file
13
lib/vulcano/backend/docker.rb
Normal 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)
|
Loading…
Add table
Reference in a new issue