Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/kitchen/docker/helpers/cli_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def docker_sudo_opts(options = {})
# @param cmd [String] the command to run
# @param options [Hash] shell-out options
# @return [String] combined stdout and stderr
# @raise [Kitchen::ShellCommandFailed] if the command exits non-zero
# @raise [Kitchen::ShellOut::ShellCommandFailed] if the command exits non-zero
def run_command(cmd, options = {})
if options.fetch(:use_sudo, false)
cmd = "#{options.fetch(:sudo_command, "sudo -E")} #{cmd}"
Expand Down
2 changes: 2 additions & 0 deletions lib/kitchen/transport/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ class DockerFailed < TransportFailed; end
# than from Test Kitchen's configuration.
#
# @param state [Hash] instance state naming the container
# @param block [Proc, nil] forwarded to the connection's constructor, which
# yields the new connection to it; the connection is not closed afterwards
# @yieldparam connection [Connection] if a block is given
# @return [Connection]
def connection(state, &block)
Expand Down
Loading