diff --git a/lib/kitchen/verifier/inspec.rb b/lib/kitchen/verifier/inspec.rb index aa33586..3a3c397 100644 --- a/lib/kitchen/verifier/inspec.rb +++ b/lib/kitchen/verifier/inspec.rb @@ -344,6 +344,20 @@ def runner_options_for_dockercli(config_data) logger.debug "Connect to Container: #{opts['host']}" opts end + + # Returns a configuration Hash that can be passed to a `Inspec::Runner`. + # + # @return [Hash] a configuration hash of string-based keys + # @api private + def runner_options_for_docker(config_data) + opts = { + 'backend' => 'docker', + 'logger' => logger, + 'host' => config_data[:container_id], + } + logger.debug "Connect to Container: #{opts['host']}" + opts + end end end end