cuba-bin 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cuba/bin/daemon.rb +3 -4
- data/lib/cuba/bin/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: 0748a709675c11899697d2ccbfb487bfcea32e24
|
4
|
+
data.tar.gz: db50c77a2ff5f2e5cc499f6da9af06ebe1e3a03b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb1efff48edfa493dad4a1cab94ae2a867126ed4dd4f71fe5a67ee4b68fa022c7932e0a6fe279e3f4df57a88018d6c1861b9aaf0cc46c72460ad101d4b21c0b6
|
7
|
+
data.tar.gz: d066bcb58a4f532f48b4abcf5f27fbe7e02577d013caa47b9cfd77d6eb4a96445474a049548c893b3266672505858d3b3fd062e6bcb2eff91354010b23c42ad8
|
data/lib/cuba/bin/daemon.rb
CHANGED
@@ -23,6 +23,8 @@ module Cuba
|
|
23
23
|
attr_accessor :puma_pid
|
24
24
|
|
25
25
|
def initialize(puma_args)
|
26
|
+
puma_args.concat ['-w', '1'] unless puma_args.include? '-w'
|
27
|
+
|
26
28
|
@puma_args = puma_args
|
27
29
|
# @options, @puma_args = options, puma_args
|
28
30
|
@options = {}
|
@@ -76,10 +78,7 @@ module Cuba
|
|
76
78
|
|
77
79
|
# tell puma to gracefully shut down workers
|
78
80
|
def graceful_restart
|
79
|
-
|
80
|
-
Process.kill(:INT, pid)
|
81
|
-
Process.wait(pid)
|
82
|
-
start_puma
|
81
|
+
Process.kill(:SIGUSR1, puma_pid)
|
83
82
|
end
|
84
83
|
|
85
84
|
def handle_change(modified, added, removed)
|
data/lib/cuba/bin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cuba-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: clap
|