backup 3.7.0 → 3.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/backup/logger/syslog.rb +1 -1
- data/lib/backup/model.rb +10 -4
- data/lib/backup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93775387e1720ff604cd8bf482de58f704308a53
|
4
|
+
data.tar.gz: ee20cb5cba4ec017ed44d47bc26eae7d81a63826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dac8ff95f57d05701bc3d877845c9480e8898aba9f158945c7f242fc4cb0ef9a2e3f6b8b6c94c225febd7a6febedb9c33cff5459714ae64df2d29f65663a12a
|
7
|
+
data.tar.gz: a37cd8af5be97b41daaa6400e1669add245f0e67ec66a002cbb4e22ff0199d883dea1b8698929dede51c31ad8bfd6a0a3c870da14cc977da35ac16d536c8e7e8
|
data/lib/backup/logger/syslog.rb
CHANGED
@@ -108,7 +108,7 @@ module Backup
|
|
108
108
|
def log(message)
|
109
109
|
level = @options.send(message.level)
|
110
110
|
::Syslog.open(@options.ident, @options.options, @options.facility) do |s|
|
111
|
-
message.lines.each {|line| s.log(level, line) }
|
111
|
+
message.lines.each {|line| s.log(level, '%s', line) }
|
112
112
|
end
|
113
113
|
end
|
114
114
|
end
|
data/lib/backup/model.rb
CHANGED
@@ -273,14 +273,20 @@ module Backup
|
|
273
273
|
|
274
274
|
syncers.each(&:perform!)
|
275
275
|
|
276
|
+
rescue Interrupt
|
277
|
+
@interrupted = true
|
278
|
+
raise
|
279
|
+
|
276
280
|
rescue Exception => err
|
277
281
|
@exception = err
|
278
282
|
|
279
283
|
ensure
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
+
unless @interrupted
|
285
|
+
set_exit_status
|
286
|
+
@finished_at = Time.now.utc
|
287
|
+
log!(:finished)
|
288
|
+
after_hook
|
289
|
+
end
|
284
290
|
end
|
285
291
|
|
286
292
|
##
|
data/lib/backup/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.7.
|
4
|
+
version: 3.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|