capistrano-runit 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 61ea4bda9e6ea5a55e81db0544a31cb2e519c4b6
4
+ data.tar.gz: 53300e44f581d98ac3be14ff296fb9c82d50a787
5
+ SHA512:
6
+ metadata.gz: 172fa5bb92f9e0f9837b3291995885630cb577330cf029a57f3fcfe8b7d185a53ed128bc70482190483acf54be1b6b4a02f3367d7c6d5c4edddb97998185fd3e
7
+ data.tar.gz: f94df05e3548c1d9775aabd0122f893e3f1991cbeafaaf080162548ec19943ec7c63d289614fd2f6b23731675d60246a53f82eff62f45c588335499ef9b1eba2
@@ -1,3 +1,7 @@
1
+ === 1.1.4 2014-02-06
2
+
3
+ * Added 'runit_unicorn_before_fork_code' variable for unicorn recipe.
4
+
1
5
  === 1.1.3 2013-04-19
2
6
 
3
7
  * Added recipes for sidekiq.
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "capistrano-runit"
3
- s.version = "1.1.3"
3
+ s.version = "1.1.4"
4
4
  s.summary = "Useful deployment recipes."
5
5
  s.homepage = "https://github.com/antage/capistrano-runit"
6
6
  s.author = "Anton Ageev"
7
7
  s.email = "antage@gmail.com"
8
8
  s.files = `git ls-files`.split
9
- s.add_dependency "capistrano", ">= 2.0.0"
9
+ s.add_dependency "capistrano", "~> 2.0"
10
10
  end
11
11
 
12
12
  # vim:ts=2 sw=2 ft=ruby
@@ -5,6 +5,7 @@ Capistrano::Configuration.instance(true).load do
5
5
  _cset :runit_unicorn_workers, 4
6
6
  _cset :runit_unicorn_listen, "127.0.0.1"
7
7
  _cset :runit_unicorn_port, 8080
8
+ _cset :runit_unicorn_before_fork_code, ""
8
9
  _cset :runit_unicorn_after_fork_code, ""
9
10
 
10
11
  namespace :runit do
@@ -44,7 +45,7 @@ Capistrano::Configuration.instance(true).load do
44
45
  run "cd #{runit_dir}/enabled && [ -h ./#{runit_unicorn_service_name} ] || ln -sf ../available/#{runit_unicorn_service_name} ."
45
46
  end
46
47
 
47
- desc "Enable Unicorn runit-service"
48
+ desc "Disable Unicorn runit-service"
48
49
  task :disable, :roles => :app do
49
50
  run "[ ! -h #{runit_dir}/enabled/#{runit_unicorn_service_name} ] || sv stop #{runit_dir}/enabled/#{runit_unicorn_service_name}/ && rm -f #{runit_dir}/enabled/#{runit_unicorn_service_name}"
50
51
  end
@@ -53,6 +53,10 @@ before_fork do |server, worker|
53
53
  ::ActiveRecord::Base.connection.disconnect!
54
54
  end
55
55
 
56
+ <% unless fetch(:runit_unicorn_before_fork_code, nil).nil? %>
57
+ <%= runit_unicorn_before_fork_code %>
58
+ <% end %>
59
+
56
60
  ##
57
61
  # When sent a USR2, Unicorn will suffix its pidfile with .oldbin and
58
62
  # immediately start loading up a new version of itself (loaded with a new
@@ -75,7 +79,6 @@ before_fork do |server, worker|
75
79
  end
76
80
  end
77
81
 
78
-
79
82
  after_fork do |server, worker|
80
83
  ##
81
84
  # Unicorn master loads the app then forks off workers - because of the way
metadata CHANGED
@@ -1,32 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-runit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
5
- prerelease:
4
+ version: 1.1.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Anton Ageev
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-18 00:00:00.000000000 Z
11
+ date: 2014-02-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capistrano
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 2.0.0
19
+ version: '2.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ~>
28
25
  - !ruby/object:Gem::Version
29
- version: 2.0.0
26
+ version: '2.0'
30
27
  description:
31
28
  email: antage@gmail.com
32
29
  executables: []
@@ -53,26 +50,25 @@ files:
53
50
  - lib/capistrano-runit/templates/run-unicorn.erb
54
51
  homepage: https://github.com/antage/capistrano-runit
55
52
  licenses: []
53
+ metadata: {}
56
54
  post_install_message:
57
55
  rdoc_options: []
58
56
  require_paths:
59
57
  - lib
60
58
  required_ruby_version: !ruby/object:Gem::Requirement
61
- none: false
62
59
  requirements:
63
- - - ! '>='
60
+ - - '>='
64
61
  - !ruby/object:Gem::Version
65
62
  version: '0'
66
63
  required_rubygems_version: !ruby/object:Gem::Requirement
67
- none: false
68
64
  requirements:
69
- - - ! '>='
65
+ - - '>='
70
66
  - !ruby/object:Gem::Version
71
67
  version: '0'
72
68
  requirements: []
73
69
  rubyforge_project:
74
- rubygems_version: 1.8.23
70
+ rubygems_version: 2.0.3
75
71
  signing_key:
76
- specification_version: 3
72
+ specification_version: 4
77
73
  summary: Useful deployment recipes.
78
74
  test_files: []