capistrano-pumaio 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gem "capistrano", ">= 2.15.5"
4
- gem 'capistrano-base_helper', ">= 0.0.6"
4
+ gem 'capistrano-base_helper', ">= 0.0.7"
5
5
 
6
6
  group :development do
7
7
  gem "bundler", ">= 1.3.0"
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GEM
9
9
  net-sftp (>= 2.0.0)
10
10
  net-ssh (>= 2.0.14)
11
11
  net-ssh-gateway (>= 1.1.0)
12
- capistrano-base_helper (0.0.6)
12
+ capistrano-base_helper (0.0.7)
13
13
  capistrano (>= 2.15.5)
14
14
  faraday (0.8.7)
15
15
  multipart-post (~> 1.1)
@@ -65,5 +65,5 @@ PLATFORMS
65
65
  DEPENDENCIES
66
66
  bundler (>= 1.3.0)
67
67
  capistrano (>= 2.15.5)
68
- capistrano-base_helper (>= 0.0.6)
68
+ capistrano-base_helper (>= 0.0.7)
69
69
  jeweler (~> 1.8.6)
data/README.md CHANGED
@@ -31,6 +31,15 @@ cap puma:monit:stop # Stop monit services for puma (will also sto...
31
31
  cap puma:monit:unmonitor # Purge puma monit configuration
32
32
  ```
33
33
 
34
+ #### Setup in your deploy file
35
+
36
+ You can add this to deploy.rb or env.rb in order to automatically start/stop puma using monit. It is not needed if you use runit to stop/start/restart the service.
37
+
38
+ ```ruby
39
+ before "monit:unmonitor", "puma:monit:stop"
40
+ after "monit:monitor", "puma:monit:start"
41
+ ```
42
+
34
43
  ### Runit
35
44
 
36
45
  ```ruby
@@ -46,6 +55,20 @@ cap puma:runit:start # Start Puma runit-service
46
55
  cap puma:runit:stop # Stop Puma runit-service
47
56
  ```
48
57
 
58
+ #### Setup in your deploy file
59
+
60
+ To use runit to start/stop/restart services instead of monit, use the example below.
61
+
62
+ ```ruby
63
+ # stop before deployment
64
+ # (must be done after monit has stopped monitoring the task. If not, the service will be restarted by monit)
65
+ before "monit:unmonitor", "puma:runit:stop"
66
+ # start before enabling monitor
67
+ before "monit:monitor", "puma:runit:start"
68
+ # restart before enabling monitor / monitoring has been started
69
+ before "monit:monitor", "puma:runit:restart"
70
+ ```
71
+
49
72
  ## Configuration
50
73
 
51
74
  See puma/config.rb for default options, and ovveride any in your deploy.rb file.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-pumaio"
8
- s.version = "0.0.5"
8
+ s.version = "0.0.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leif Ringstad"]
12
- s.date = "2013-07-08"
12
+ s.date = "2013-07-29"
13
13
  s.description = "Capistrano recipes for puma using runit and monit."
14
14
  s.email = "leifcr@gmail.com"
15
15
  s.extra_rdoc_files = [
@@ -46,18 +46,18 @@ Gem::Specification.new do |s|
46
46
 
47
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
48
  s.add_runtime_dependency(%q<capistrano>, [">= 2.15.5"])
49
- s.add_runtime_dependency(%q<capistrano-base_helper>, [">= 0.0.6"])
49
+ s.add_runtime_dependency(%q<capistrano-base_helper>, [">= 0.0.7"])
50
50
  s.add_development_dependency(%q<bundler>, [">= 1.3.0"])
51
51
  s.add_development_dependency(%q<jeweler>, ["~> 1.8.6"])
52
52
  else
53
53
  s.add_dependency(%q<capistrano>, [">= 2.15.5"])
54
- s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.6"])
54
+ s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.7"])
55
55
  s.add_dependency(%q<bundler>, [">= 1.3.0"])
56
56
  s.add_dependency(%q<jeweler>, ["~> 1.8.6"])
57
57
  end
58
58
  else
59
59
  s.add_dependency(%q<capistrano>, [">= 2.15.5"])
60
- s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.6"])
60
+ s.add_dependency(%q<capistrano-base_helper>, [">= 0.0.7"])
61
61
  s.add_dependency(%q<bundler>, [">= 1.3.0"])
62
62
  s.add_dependency(%q<jeweler>, ["~> 1.8.6"])
63
63
  end
@@ -9,7 +9,7 @@ Capistrano::Configuration.instance(true).load do
9
9
  # Service should probably be started as well?
10
10
  after "deploy:update", "puma:runit:enable"
11
11
  before "puma:runit:setup", "puma:runit:flush_sockets"
12
- after "puma:runit:quit", "puma:runit:stop"
12
+ before "puma:runit:quit", "puma:runit:stop"
13
13
 
14
14
  namespace :puma do
15
15
  namespace :runit do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-pumaio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2013-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ! '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 0.0.6
37
+ version: 0.0.7
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
- version: 0.0.6
45
+ version: 0.0.7
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: bundler
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +115,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  segments:
117
117
  - 0
118
- hash: -4210930793118983837
118
+ hash: -2705318292762917386
119
119
  required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  none: false
121
121
  requirements: