capistrano3-puma 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ea350fc3a6710ad4d8c993d22ba678de9f257b4
4
- data.tar.gz: 11a6d44358efac4a923d7d085f9ab2d902a0356e
3
+ metadata.gz: 9cbc6d0457399e7b44e785e7783a81e963400051
4
+ data.tar.gz: b430fb5defe9ee2cda9c85be2ac174f3dd84b5b5
5
5
  SHA512:
6
- metadata.gz: da870baec198029a8918416162ffc2ad8a4eadd73a16a50075f6c9f05d81d70b95241ffbb22862d5a62a6c408a21b2e7ae6244a5b7b6a076e8b2c9ce13fba76a
7
- data.tar.gz: 8c7b71aaa0ef4a25b369880172c9f018d9991f8fb9bebfb0d87711b3e5f01780e88ac93775dfebd00a3d7beab6139797d0498a47f593b118b89c29813fc8f759
6
+ metadata.gz: e72d5bed7faaee8d88f840404fa0d3b062daea20bcacfc4779d53845bea43ce81b75999c12b46f9d2317c9c0ad7c5acd3c93c9e8da5a85000dfedf390bc7c52e
7
+ data.tar.gz: 4c121dbcf114f565a20c46452a086df61d4618d02942693cc9bba54cd30f6fecc934e5fb1d341ce53436bf53b84932f8400c58777633e694115ac526d9514428
data/README.md CHANGED
@@ -93,6 +93,7 @@ Ensure that the following directories are shared (via ``linked_dirs``):
93
93
  tmp/pids tmp/sockets log
94
94
 
95
95
  ## Changelog
96
+ - 0.8.2: Start task creates a conf file if none exists @stevemadere
96
97
  - 0.8.1: Fixed nginx task @hnatt, support for prune_bundler @behe
97
98
  - 0.8.0: Some changes
98
99
  - 0.7.0: added Nginx template generator @dfang
@@ -122,7 +123,6 @@ Ensure that the following directories are shared (via ``linked_dirs``):
122
123
  - 0.0.8: puma.rb is automatically generated if not present. Fixed RVM issue.
123
124
  - 0.0.7: Gem pushed to rubygems as capistrano3-puma. Support of Redhat based OS for Jungle init script.
124
125
 
125
- ## TODO
126
126
 
127
127
  ## Contributors
128
128
 
@@ -131,7 +131,8 @@ Ensure that the following directories are shared (via ``linked_dirs``):
131
131
  - [ayaya](https://github.com/ayamomiji)
132
132
  - [Shane O'Grady](https://github.com/shaneog)
133
133
  - [Jun Lin](https://github.com/linjunpop)
134
- - [fang duan](https://github.com/dfang/capistrano-puma)
134
+ - [fang duan](https://github.com/dfang)
135
+ - [Steve Madere](https://github.com/stevemadere)
135
136
 
136
137
  ## Contributing
137
138
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Puma
3
- VERSION = '0.8.1'
3
+ VERSION = '0.8.2'
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  namespace :load do
2
2
  task :defaults do
3
- set :puma_nginx, :web
3
+ set :puma_nginx, -> { :web }
4
4
  end
5
5
  end
6
6
 
@@ -1,3 +1,4 @@
1
+
1
2
  namespace :load do
2
3
  task :defaults do
3
4
  set :puma_default_hooks, -> { true }
@@ -51,6 +52,11 @@ namespace :puma do
51
52
  desc 'Start puma'
52
53
  task :start do
53
54
  on roles (fetch(:puma_role)) do
55
+ if test "[ -f #{fetch(:puma_conf)} ]"
56
+ info "using conf file #{fetch(:puma_conf)}"
57
+ else
58
+ invoke 'puma:config'
59
+ end
54
60
  within current_path do
55
61
  with rack_env: fetch(:puma_env) do
56
62
 
@@ -94,7 +100,7 @@ namespace :puma do
94
100
  execute :bundle, 'exec', :pumactl, "-S #{fetch(:puma_state)} #{command}"
95
101
  else
96
102
  # Puma is not running or state file is not present : Run it
97
- execute :bundle, 'exec', :puma, "-C #{fetch(:puma_conf)} --daemon"
103
+ invoke 'puma:start'
98
104
  end
99
105
  end
100
106
  end
File without changes
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.8.1
4
+ version: 0.8.2
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-10-08 00:00:00.000000000 Z
11
+ date: 2014-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -51,7 +51,6 @@ files:
51
51
  - README.md
52
52
  - Rakefile
53
53
  - capistrano3-puma.gemspec
54
- - lib/capistrano-puma.rb
55
54
  - lib/capistrano/puma.rb
56
55
  - lib/capistrano/puma/jungle.rb
57
56
  - lib/capistrano/puma/monit.rb
@@ -69,6 +68,7 @@ files:
69
68
  - lib/capistrano/templates/puma.rb.erb
70
69
  - lib/capistrano/templates/puma_monit.conf.erb
71
70
  - lib/capistrano/templates/run-puma.erb
71
+ - lib/capistrano3-puma.rb
72
72
  - lib/generators/capistrano/nginx_puma/USAGE
73
73
  - lib/generators/capistrano/nginx_puma/config_generator.rb
74
74
  homepage: https://github.com/seuros/capistrano-puma
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.4.1
96
+ rubygems_version: 2.4.2
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: Puma integration for Capistrano