mina-extras 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/mina-extras/puma.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8155948e9d5fd92bae5aafa980c58df7352abead
4
- data.tar.gz: a29ea5a2817624d483f37209390bad5085398512
3
+ metadata.gz: efeacc23cf9f8070ea85819a1a43eaaefa6ebfc5
4
+ data.tar.gz: de9dbb5d17d0d95c721142bf0c8a995741b149d6
5
5
  SHA512:
6
- metadata.gz: 376b12d093eeb1a5a260f1dad8ee22d0d7f2c078d74cc31bb1de1c22872afa3790e09a2e8a72184c2819f35c885c7536f770cdd9d07c8cdba864846b6aa14b6b
7
- data.tar.gz: ba4be8171da116a9f17bf9e630b034f52b545144b8354df957fa24e4304abd65833dfb41a7875a95dc902b654769e94bb4cfc79fd4d684ca543b8ec95ae1120e
6
+ metadata.gz: d2f83279bcf4646b9575b4a90b216342d14fdb9e2131f61273a6a065e7b64f007c1c4051ff780b20488346f365f192539b6b5854160434d5790a760cc733b301
7
+ data.tar.gz: f109ffc9ae7169da57294e90d80ff25408231e9c2e0bf0e8f51a82e29a8b34fe1952fb1f653864646deba5269b338862edd2f5fea27dadea76ed27ec656bf396
@@ -26,7 +26,11 @@ namespace :puma do
26
26
  desc 'Restart puma'
27
27
  task :restart => [:config, :environment] do
28
28
  queue %{
29
- if [[ ! -e "#{deploy_to}/#{shared_path}/sockets/pumactl.sock" || ! -e "#{deploy_to}/#{shared_path}/sockets/puma.sock" ]]; then
29
+ PUMA_PID=$(cat "#{deploy_to}/#{shared_path}/pids/puma.pid")
30
+ kill -0 $PUMA_PID > /dev/null 2>&1
31
+ if [ $? != 0 ]; then
32
+ rm "#{deploy_to}/#{shared_path}/sockets/pumactl.sock" > /dev/null 2>&1
33
+ rm "#{deploy_to}/#{shared_path}/sockets/puma.sock" > /dev/null 2>&1
30
34
  echo "-----> Starting puma"
31
35
  #{echo_cmd puma_start_cmd}
32
36
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-extras
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Berdajs