capistrano3-puma 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/capistrano/puma/version.rb +1 -1
- data/lib/capistrano/templates/puma-deb.erb +92 -90
- 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: 81ccaba58194a9f3893aa6f7c78445304a982798
|
4
|
+
data.tar.gz: c415abf9a598a414e56090875243208c106d79c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b823615eb7148a4d8923df9bfc251a20a139f568f08e8692c53a895a72f45049f7c5b06b7487afbd661168832474a3d522b996c5d0fa2b283454af00cad188f1
|
7
|
+
data.tar.gz: 6dd4aade470fb3273d2394c9b83ea9c423ef8d1813a45aff73764240031221499221f2b3d0dd0e560e6970a2e54295b88e4702c7e6ec219ddda5603c933c4a41
|
data/README.md
CHANGED
@@ -127,7 +127,7 @@ do_restart_one() {
|
|
127
127
|
PIDFILE=$1/tmp/pids/puma.pid
|
128
128
|
i=`grep $1 $CONFIG`
|
129
129
|
dir=`echo $i | cut -d , -f 1`
|
130
|
-
|
130
|
+
|
131
131
|
if [ -e $PIDFILE ]; then
|
132
132
|
log_daemon_msg "--> About to restart puma $1"
|
133
133
|
su - $2 -c "pumactl --state $dir/tmp/pids/puma.state restart"
|
@@ -138,9 +138,9 @@ do_restart_one() {
|
|
138
138
|
user=`echo $i | cut -d , -f 2`
|
139
139
|
config_file=`echo $i | cut -d , -f 3`
|
140
140
|
if [ "$config_file" = "" ]; then
|
141
|
-
|
142
|
-
|
143
|
-
|
141
|
+
config_file="$dir/config/puma.rb"
|
142
|
+
do_start_one $dir $user $config_file
|
143
|
+
fi
|
144
144
|
log_file=`echo $i | cut -d , -f 4`
|
145
145
|
if [ "$log_file" = "" ]; then
|
146
146
|
log_file="$dir/log/puma.log"
|
@@ -168,7 +168,7 @@ do_status_one() {
|
|
168
168
|
PIDFILE=$1/tmp/pids/puma.pid
|
169
169
|
i=`grep $1 $CONFIG`
|
170
170
|
dir=`echo $i | cut -d , -f 1`
|
171
|
-
|
171
|
+
|
172
172
|
if [ -e $PIDFILE ]; then
|
173
173
|
log_daemon_msg "--> About to status puma $1"
|
174
174
|
|
@@ -234,39 +234,40 @@ do_remove() {
|
|
234
234
|
|
235
235
|
case "$1" in
|
236
236
|
start)
|
237
|
-
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
|
238
|
-
if [ "$#" -eq 1 ]; then
|
239
|
-
|
240
|
-
else
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
237
|
+
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
|
238
|
+
if [ "$#" -eq 1 ]; then
|
239
|
+
do_start
|
240
|
+
else
|
241
|
+
i=`grep $2 $CONFIG`
|
242
|
+
dir=`echo $i | cut -d , -f 1`
|
243
|
+
user=`echo $i | cut -d , -f 2`
|
244
|
+
config_file=`echo $i | cut -d , -f 3`
|
245
|
+
if [ "$config_file" = "" ]; then
|
246
|
+
config_file="$dir/config/puma.rb"
|
247
247
|
|
248
|
-
|
249
|
-
fi
|
250
|
-
case "$?" in
|
251
|
-
|
252
|
-
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
253
|
-
esac
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
248
|
+
do_start_one $dir $user $config_file
|
249
|
+
fi
|
250
|
+
case "$?" in
|
251
|
+
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
252
|
+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
253
|
+
esac
|
254
|
+
fi
|
255
|
+
;;
|
256
|
+
stop)
|
257
|
+
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
|
258
|
+
if [ "$#" -eq 1 ]; then
|
259
|
+
do_stop
|
260
|
+
else
|
261
|
+
i=`grep $2 $CONFIG`
|
262
|
+
dir=`echo $i | cut -d , -f 1`
|
263
|
+
do_stop_one $dir
|
264
|
+
fi
|
265
|
+
case "$?" in
|
266
|
+
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
267
|
+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
268
|
+
esac
|
269
|
+
;;
|
270
|
+
status)
|
270
271
|
# TODO Implement.
|
271
272
|
log_daemon_msg "Status $DESC" "$NAME"
|
272
273
|
if [ "$#" -eq 1 ]; then
|
@@ -278,57 +279,58 @@ status)
|
|
278
279
|
fi
|
279
280
|
case "$?" in
|
280
281
|
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
281
|
-
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
282
|
-
esac
|
283
|
-
;;
|
284
|
-
restart)
|
285
|
-
log_daemon_msg "Restarting $DESC" "$NAME"
|
286
|
-
if [ "$#" -eq 1 ]; then
|
287
|
-
|
288
|
-
else
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
fi
|
293
|
-
case "$?" in
|
294
|
-
|
295
|
-
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
296
|
-
esac
|
297
|
-
;;
|
298
|
-
add)
|
299
|
-
if [ "$#" -lt 3 ]; then
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
else
|
305
|
-
|
306
|
-
fi
|
307
|
-
case "$?" in
|
308
|
-
|
309
|
-
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
310
|
-
esac
|
311
|
-
;;
|
312
|
-
remove)
|
313
|
-
if [ "$#" -lt 2 ]; then
|
314
|
-
|
315
|
-
|
316
|
-
else
|
317
|
-
|
318
|
-
fi
|
319
|
-
case "$?" in
|
320
|
-
|
321
|
-
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
322
|
-
esac
|
323
|
-
;;
|
324
|
-
*)
|
325
|
-
echo "Usage:" >&2
|
326
|
-
echo " Run the jungle: $SCRIPTNAME {start|stop|status|restart}" >&2
|
327
|
-
echo " Add a Puma: $SCRIPTNAME add /path/to/app user /path/to/app/config/puma.rb /path/to/app/config/log/puma.log"
|
328
|
-
echo " config and log are optionals."
|
329
|
-
echo " Remove a Puma: $SCRIPTNAME remove /path/to/app"
|
330
|
-
echo " On a Puma: $SCRIPTNAME {start|stop|status|restart} PUMA-NAME" >&2
|
331
|
-
exit 3
|
332
|
-
;;
|
282
|
+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
283
|
+
esac
|
284
|
+
;;
|
285
|
+
restart)
|
286
|
+
log_daemon_msg "Restarting $DESC" "$NAME"
|
287
|
+
if [ "$#" -eq 1 ]; then
|
288
|
+
do_restart
|
289
|
+
else
|
290
|
+
i=`grep $2 $CONFIG`
|
291
|
+
dir=`echo $i | cut -d , -f 1`
|
292
|
+
do_restart_one $dir
|
293
|
+
fi
|
294
|
+
case "$?" in
|
295
|
+
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
296
|
+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
297
|
+
esac
|
298
|
+
;;
|
299
|
+
add)
|
300
|
+
if [ "$#" -lt 3 ]; then
|
301
|
+
echo "Please, specifiy the app's directory and the user that will run it at least."
|
302
|
+
echo " Usage: $SCRIPTNAME add /path/to/app user /path/to/app/config/puma.rb /path/to/app/config/log/puma.log"
|
303
|
+
echo " config and log are optionals."
|
304
|
+
exit 1
|
305
|
+
else
|
306
|
+
do_add $2 $3 $4 $5
|
307
|
+
fi
|
308
|
+
case "$?" in
|
309
|
+
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
310
|
+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
311
|
+
esac
|
312
|
+
;;
|
313
|
+
remove)
|
314
|
+
if [ "$#" -lt 2 ]; then
|
315
|
+
echo "Please, specifiy the app's directory to remove."
|
316
|
+
exit 1
|
317
|
+
else
|
318
|
+
do_remove $2
|
319
|
+
fi
|
320
|
+
case "$?" in
|
321
|
+
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
|
322
|
+
2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
|
323
|
+
esac
|
324
|
+
;;
|
325
|
+
*)
|
326
|
+
echo "Usage:" >&2
|
327
|
+
echo " Run the jungle: $SCRIPTNAME {start|stop|status|restart}" >&2
|
328
|
+
echo " Add a Puma: $SCRIPTNAME add /path/to/app user /path/to/app/config/puma.rb /path/to/app/config/log/puma.log"
|
329
|
+
echo " config and log are optionals."
|
330
|
+
echo " Remove a Puma: $SCRIPTNAME remove /path/to/app"
|
331
|
+
echo " On a Puma: $SCRIPTNAME {start|stop|status|restart} PUMA-NAME" >&2
|
332
|
+
exit 3
|
333
|
+
;;
|
333
334
|
esac
|
334
|
-
:
|
335
|
+
:
|
336
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-puma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdelkader Boudih
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|