webtranslateit-safe 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/web_translate_it/safe/sftp.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a8304cc611880266f79c56c9be3a4e5cea6275073c93889a4dfd599ad6cf851
|
4
|
+
data.tar.gz: 46a96b97260f9458625e433681562dd0997e4b7d79e19082dd52add75a9712f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 670a84fa71b7b52132670219d064e816bd68475c3a40bbc96fc9fcce9471ef073c8aea272800490c97517e1e8c01536f1db7c35badbe193169530fca32b01946
|
7
|
+
data.tar.gz: 75b72ba9cb7ef01b6e327187479e379db60feb60a0eceac7e96d34f9637206f01fed991c6e8f84f5ee0bfe376eb72d3165337be62dc14c417cde8fb8c92c4580
|
data/CHANGELOG
CHANGED
@@ -32,7 +32,7 @@ module WebTranslateIt
|
|
32
32
|
puts "Sending #{@backup.path} to #{full_path}" if verbose?
|
33
33
|
begin
|
34
34
|
connexion.upload! @backup.path, full_path
|
35
|
-
rescue IO::TimeoutError
|
35
|
+
rescue IO::TimeoutError, Net::SCP::Error
|
36
36
|
puts 'Upload timed out, retrying'
|
37
37
|
retries += 1
|
38
38
|
if retries >= MAX_RETRIES
|
@@ -40,7 +40,7 @@ module WebTranslateIt
|
|
40
40
|
else
|
41
41
|
retry unless retries >= MAX_RETRIES
|
42
42
|
end
|
43
|
-
rescue Net::SFTP::StatusException
|
43
|
+
rescue Net::SFTP::StatusException
|
44
44
|
Net::SFTP.start(host, user, opts) do |sftp|
|
45
45
|
puts "Ensuring remote path (#{path}) exists" if verbose?
|
46
46
|
# mkdir -p
|