Class: Kitchen::Transport::SshTgz
- Inherits:
-
Ssh
- Object
- Ssh
- Kitchen::Transport::SshTgz
- Defined in:
- lib/kitchen/transport/ssh_tgz.rb
Overview
A Transport which uses the SSH protocol to execute commands and transfer files. In addition, files are tar-gzipped to improve performance over high-latency network links.
Most of this class reuses functionality from the base Ssh class.
Defined Under Namespace
Classes: Connection
Instance Method Summary collapse
Instance Method Details
#create_new_connection(options, &block) ⇒ Object
128 129 130 131 132 133 134 135 136 |
# File 'lib/kitchen/transport/ssh_tgz.rb', line 128 def create_new_connection(, &block) if @connection logger.debug("[SSH] shutting previous connection #{@connection}") @connection.close end @connection_options = @connection = Kitchen::Transport::SshTgz::Connection.new(, &block) end |