Skip to content

Commit

Permalink
Add docker transport runner options
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Coe <[email protected]>
  • Loading branch information
jeffreycoe committed Jun 18, 2019
1 parent d1c1761 commit 3781be5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/kitchen/verifier/inspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3781be5

Please sign in to comment.