Skip to content

Commit

Permalink
add new transport support - docker_cli. (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: chrisLeeTW <protosschris.tech@gmail.com>
  • Loading branch information
chrisLeeTW authored and jquick committed Sep 21, 2018
1 parent 3d4a481 commit 67be68e
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 @@ -304,6 +304,20 @@ def runner_options_for_exec(config_data)
}
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_dockercli(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 67be68e

Please sign in to comment.