class Kitchen::Transport::Docker::Connection

Public Instance Methods

container() click to toggle source
# File lib/kitchen/transport/docker.rb, line 100
def container
  @container ||= if @options[:platform].include?('windows')
                   Kitchen::Docker::Container::Windows.new(@options)
                 else
                   Kitchen::Docker::Container::Linux.new(@options)
                 end
  @container
end
execute(command) click to toggle source
# File lib/kitchen/transport/docker.rb, line 85
def execute(command)
  return if command.nil?

  debug("[Docker] Executing command: #{command}")
  info("[Docker] Executing command on container")

  container.execute(command)
rescue => e
  raise DockerFailed, "Docker failed to execute command on container. Error Details: #{e}"
end
upload(locals, remote) click to toggle source
# File lib/kitchen/transport/docker.rb, line 96
def upload(locals, remote)
  container.upload(locals, remote)
end