server_backups 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/server_backup +5 -3
- data/lib/server_backups/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55cf8d25682ff8ed9109cbba146d0bc6c401e793
|
4
|
+
data.tar.gz: 6d813fc1f41d21306be76c81b3d2ca2abb9e7099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91ba5f8c8abe776d465dd2295c8d35168bb3c557274e10d1ef53a60946456a1fa72410d0e6b35b7427c7d7d038800de35cf8f751dd849a7416668fe619a89417
|
7
|
+
data.tar.gz: 5a6c5870270b33264082455d92874cf76519a1297a37d6678b4a4d417e1ae3d5cdd3c1d76113fdb8319acf698c8de168c341faa22e8b4b685a9088e149750ab7
|
data/Gemfile.lock
CHANGED
data/bin/server_backup
CHANGED
@@ -24,7 +24,7 @@ def backup_thread
|
|
24
24
|
FileUtils.mkdir_p(dir)
|
25
25
|
yield dir
|
26
26
|
rescue StandardError => error
|
27
|
-
ERRORS << error
|
27
|
+
ERRORS << error
|
28
28
|
ensure
|
29
29
|
FileUtils.rm_rf dir
|
30
30
|
end
|
@@ -38,8 +38,10 @@ def handle_errors(config_path)
|
|
38
38
|
puts "That's the jam"
|
39
39
|
else
|
40
40
|
notifier.notify_failure(ERRORS)
|
41
|
-
|
42
|
-
|
41
|
+
ERRORS.each do |error|
|
42
|
+
puts error.message
|
43
|
+
puts "\n\n " + error.backtrace.join("\n ")
|
44
|
+
end
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|