rob_cap_recipes 0.0.4.alpha1 → 0.0.4.alpha2

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: 59dafa8edafa120f5a4439ff1e5d9a2130d27c6a
4
- data.tar.gz: 5e27c2c8b1b6bd28706b24f4843f84b39517d9b3
3
+ metadata.gz: 65eb330d3f040d0b67841940aa0147b5f7b2d486
4
+ data.tar.gz: 8003531da1de7b140f107324461ae8349af61eb7
5
5
  SHA512:
6
- metadata.gz: 5d071e901205404ba3f6f30f51680a2dd45b163e49fe719ceacbdf1d9a814ef682b22f89e08a039fa427a5e7d3f1cbfc2176cf60d33df9d2d27c803e2dddae0b
7
- data.tar.gz: 6c7fe27d6ea3565d11001fe6a7b82206c5bd045f7f8e0dc012ecf6b0ef4d8256ebfed62fefe9d783c108f3f6101b9162667f149d30878a30c0c34ab0743a48aa
6
+ metadata.gz: b6a6252e9e8ab9d2fcd8b45a7bd13e92173752a5a742dc391b17b1c2f392c28f28355f4e4aa28900e96653ae8e16ed41bef255f119388a78b3a8a7b852ac778c
7
+ data.tar.gz: 4b3773958631075b76936067aca899e509ee81c2963583f86deeb24ee99da06a9408442d8ca234ba2c67bc852ad497a114e5a8a471789db9a6624cf8fa4ea962
@@ -17,18 +17,19 @@ Capistrano::Configuration.instance(true).load do
17
17
  run "#{sudo} mv /tmp/puma_init /etc/init.d/puma"
18
18
  run "#{sudo} update-rc.d -f puma defaults"
19
19
  run "#{sudo} touch /etc/puma.conf"
20
- template "puma_run", "/tmp/run-puma"
20
+ template "puma_run.erb", "/tmp/run-puma"
21
21
  run "chmod +x /tmp/run-puma"
22
22
  run "#{sudo} mv /tmp/run-puma /usr/local/bin/run-puma"
23
- run "#{sudo} /etc/init.d/puma add #{current_path} #{puma_user}"
24
23
  end
25
24
  after "deploy:setup", "puma_robstr:setup"
26
25
 
27
- desc "Symlink the puma files into latest release"
26
+ desc "Update puma configa and Symlink the puma files into latest release"
28
27
  task :symlink, roles: :app do
29
28
  run "ln -nfs #{shared_path}/config/puma.rb #{release_path}/config/puma.rb"
30
29
  run "ln -nfs #{shared_path}/sockets #{release_path}/tmp/sockets"
30
+ run "#{sudo} /etc/init.d/puma remove #{current_path}"
31
+ run "#{sudo} /etc/init.d/puma add #{current_path} #{puma_user}"
31
32
  end
32
- after "deploy:finalize_update", "puma_robstr:symlink"
33
+ after "deploy:symlink", "puma_robstr:symlink"
33
34
  end
34
35
  end
@@ -1,3 +1,3 @@
1
1
  module RobCapRecipes
2
- VERSION = "0.0.4.alpha1"
2
+ VERSION = "0.0.4.alpha2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rob_cap_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.alpha1
4
+ version: 0.0.4.alpha2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Stridsberg