myreplicator 1.1.71 → 1.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/app/models/myreplicator/sweeper.rb +7 -7
- data/lib/myreplicator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Zjc5ZDBhZTBjNzQ4NzMwMDI0MDMwMGI0N2ViMTdlNmYzMGJkMDYwOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTIyN2VmNGVjMWIyNjQxNDBlOTk3NWU1ODc5NTNmZTIzMTNmMzZjOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzY4Njg1OTJjNDI4ZjI3MWQxYjEwNGI4NDZkZDI0ZjJiNGMzOTYyZmY2YzFj
|
10
|
+
ZjYzNGZiMjMyOGViOWFhMmRjMjU4ZWQxZThlYzQxMzE4MmI4MGI5MGIxMjk5
|
11
|
+
OTEzN2VmZTYxMDNkNmMwODZlNmJjMWY0ZGI5MGQ1NWJlYTA4Yzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTI4MjI3NTVkOTQxZmE2MDY1ZjZiOGQ5MGY0NTE3ZTBhNGFhODRlZGZiNTli
|
14
|
+
ZDhjNWJmNTc5NDVkOTlkNWNlMjMwNWYyMDdjNDI1ZTYyYmZhYTljNmRjYWEz
|
15
|
+
YTcxMmU2MjM1Njc3OTBlYjY0YWJkNzFlZmIyY2NiNjc4MjMwOTM=
|
@@ -1,8 +1,7 @@
|
|
1
1
|
module Myreplicator
|
2
2
|
class Sweeper
|
3
|
-
|
3
|
+
|
4
4
|
@queue = :myreplicator_sweeper # Provided for Resque
|
5
|
-
|
6
5
|
##
|
7
6
|
# Main method provided for resque
|
8
7
|
# Reconnection provided for resque workers
|
@@ -14,12 +13,13 @@ module Myreplicator
|
|
14
13
|
ActiveRecord::Base.configurations.keys.each do |db|
|
15
14
|
Myreplicator::VerticaLoader.clean_up_temp_tables(db)
|
16
15
|
end
|
17
|
-
|
16
|
+
|
18
17
|
#removing files that are left in the storage for more than 12 hours
|
19
18
|
folders = [
|
20
|
-
"
|
21
|
-
"
|
22
|
-
|
19
|
+
"#{Myreplicator.tmp_path}",
|
20
|
+
"#{Myreplicator.configs[Myreplicator.configs.keys[1]]["ssh_tmp_dir"]}"
|
21
|
+
]
|
22
|
+
|
23
23
|
folders.each do |folder|
|
24
24
|
cmd = "find #{folder} -mmin +720"
|
25
25
|
l = `#{cmd}`
|
@@ -36,6 +36,6 @@ module Myreplicator
|
|
36
36
|
end
|
37
37
|
|
38
38
|
end
|
39
|
-
|
39
|
+
|
40
40
|
end
|
41
41
|
end
|
data/lib/myreplicator/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: myreplicator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.73
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sasan Padidar
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|