capistrano3-puma 0.4.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95737637344d4d5216cb1c3f3a11ff0ad3c56e0b
4
- data.tar.gz: 7804f9ea497e87b846eed953c1837ee13baa2ebd
3
+ metadata.gz: 81ccaba58194a9f3893aa6f7c78445304a982798
4
+ data.tar.gz: c415abf9a598a414e56090875243208c106d79c5
5
5
  SHA512:
6
- metadata.gz: 46fe892646295909ee4ced4db5dff593a0d0f803626ba428403b603e8985f65750b2f6be9579bbdbb5b0716f79ff2b760ab7acbea80d5774f6191e078d98e3ba
7
- data.tar.gz: fdfe43b1c482335f3c6323d558027b6e5714f01ccb5d6188e6e9e591b9979f9427d0790b769dafde442d607f404c41c20e461937bd77968447a286253c55473e
6
+ metadata.gz: b823615eb7148a4d8923df9bfc251a20a139f568f08e8692c53a895a72f45049f7c5b06b7487afbd661168832474a3d522b996c5d0fa2b283454af00cad188f1
7
+ data.tar.gz: 6dd4aade470fb3273d2394c9b83ea9c423ef8d1813a45aff73764240031221499221f2b3d0dd0e560e6970a2e54295b88e4702c7e6ec219ddda5603c933c4a41
data/README.md CHANGED
@@ -52,6 +52,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
52
52
  tmp/pids tmp/sockets log
53
53
 
54
54
  ## Changelog
55
+ - 0.4.1: Fix puma jungle (debian)
55
56
  - 0.4.0: Multi-bind support
56
57
  - 0.3.7: Dependency bug fix
57
58
  - 0.3.5: Fixed a prehistoric bug
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
5
5
  end
@@ -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
- config_file="$dir/config/puma.rb"
142
- do_start_one $dir $user $config_file
143
- fi
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
- 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"
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
- 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
- ;;
255
- stop)
256
- [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
257
- if [ "$#" -eq 1 ]; then
258
- do_stop
259
- else
260
- i=`grep $2 $CONFIG`
261
- dir=`echo $i | cut -d , -f 1`
262
- do_stop_one $dir
263
- fi
264
- case "$?" in
265
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
266
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
267
- esac
268
- ;;
269
- status)
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
- do_restart
288
- else
289
- i=`grep $2 $CONFIG`
290
- dir=`echo $i | cut -d , -f 1`
291
- do_restart_one $dir
292
- fi
293
- case "$?" in
294
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
295
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
296
- esac
297
- ;;
298
- add)
299
- if [ "$#" -lt 3 ]; then
300
- echo "Please, specifiy the app's directory and the user that will run it at least."
301
- echo " Usage: $SCRIPTNAME add /path/to/app user /path/to/app/config/puma.rb /path/to/app/config/log/puma.log"
302
- echo " config and log are optionals."
303
- exit 1
304
- else
305
- do_add $2 $3 $4 $5
306
- fi
307
- case "$?" in
308
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
309
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
310
- esac
311
- ;;
312
- remove)
313
- if [ "$#" -lt 2 ]; then
314
- echo "Please, specifiy the app's directory to remove."
315
- exit 1
316
- else
317
- do_remove $2
318
- fi
319
- case "$?" in
320
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
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.0
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-30 00:00:00.000000000 Z
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano