Class: Kitchen::Transport::Sftp
- Inherits:
-
Ssh
- Object
- Ssh
- Kitchen::Transport::Sftp
- Defined in:
- lib/kitchen/transport/sftp.rb
Defined Under Namespace
Classes: Connection
Constant Summary collapse
- CHECKSUMS_PATH =
File.('../../../kitchen-sync/checksums.rb', __FILE__)
- CHECKSUMS_HASH =
Digest::SHA1.file(CHECKSUMS_PATH)
- CHECKSUMS_REMOTE_PATH =
This won’t work on Windows targets
"/tmp/checksums-#{CHECKSUMS_HASH}.rb"
- MAX_TRANSFERS =
64
Instance Method Summary collapse
-
#create_new_connection(options, &block) ⇒ Object
Copy-pasta from Ssh#create_new_connection because I need the SFTP connection class.
Instance Method Details
#create_new_connection(options, &block) ⇒ Object
Copy-pasta from Ssh#create_new_connection because I need the SFTP connection class. Tracked in github.com/test-kitchen/test-kitchen/pull/726
38 39 40 41 42 43 44 45 46 |
# File 'lib/kitchen/transport/sftp.rb', line 38 def create_new_connection(, &block) if @connection logger.debug("[SSH] shutting previous connection #{@connection}") @connection.close end @connection_options = @connection = self.class::Connection.new(, &block) end |