nesta-plugin-drop 0.0.5 → 0.0.6
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 +4 -4
- data/lib/nesta-plugin-drop/client.rb +7 -4
- data/lib/nesta-plugin-drop/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: 14c01e6b192cfece669c26f696b981568f38a814
|
|
4
|
+
data.tar.gz: ea358b7725b37e68d4e012929a5257ade1e42b05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b94f36de0974cf53610ab881a7c31d292ed4d496a1be0b872fc261b8e4b13c6c9f0e66158d90be813d812e54165c247c74fc7044b5914de8f66ffedcefe8b50
|
|
7
|
+
data.tar.gz: e798827305efa8504a894c8dfe20075fb4da9706a6f1fd671638039880856818832d8b3f0557c976fd4f0411405bcf342426a1ce75b10bbd2098549cba9f92e8
|
|
@@ -47,12 +47,15 @@ module Nesta
|
|
|
47
47
|
|
|
48
48
|
def self.bounce_server!
|
|
49
49
|
return if syncing?
|
|
50
|
+
Nesta::Plugin::Drop.logger.info "NESTADROP: Purging nesta file cache."
|
|
51
|
+
Nesta::FileModel.purge_cache
|
|
50
52
|
Nesta::Plugin::Drop.logger.info "NESTADROP: Restarting server..."
|
|
51
53
|
unless system("bundle exec pumactl -S /tmp/.app_state phased-restart")
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
Thread.new do
|
|
55
|
+
Nesta::Plugin::Drop.logger.info "NESTADROP: Waiting for server to load before restarting."
|
|
56
|
+
sleep(3)
|
|
57
|
+
bounce_server!
|
|
58
|
+
end
|
|
56
59
|
end
|
|
57
60
|
end
|
|
58
61
|
|