Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (9 sloc) 328 Bytes
begin
ssh.upload source, dest
@logger.info "Successfully copied the file #{source} to " +
"#{@config[:scp_hostname]}:#{dest}."
rescue SocketError, ArgumentError, SystemCallError,
Net::SCP::Exception, Timeout::Error => ex
@logger.error "Failed to copy the file #{source} to #{dest} due to " +
"#{ex.message}"
end
Jump to Line
Something went wrong with that request. Please try again.