Method: Toolshed::ServerAdministration::SCP#upload
- Defined in:
- lib/toolshed/server_administration/scp.rb
#upload ⇒ Object
34 35 36 37 38 |
# File 'lib/toolshed/server_administration/scp.rb', line 34 def upload Toolshed.logger.info "Attempting to SCP from #{local_path} to #{username}@#{remote_host}:#{remote_path}." # rubocop:disable LineLength Net::SCP.upload!(remote_host, username, local_path, remote_path, ssh: , recursive: true) # rubocop:disable LineLength on_complete end |