capistrano-runit-tasks 1.0.0.pre1 → 1.0.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +9 -1
- data/lib/capistrano-runit-tasks.rb +2 -5
- metadata +35 -6
data/CHANGELOG
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
*
|
1
|
+
*1.0.0.pre2* (August 3rd 2010)
|
2
|
+
--------------------------------------------------
|
3
|
+
* Add dependencies to gemspec and a Gemfile that reads the gemspec
|
4
|
+
|
5
|
+
* Rename task to avoid deprecation warning [jon@zomo.co.uk]
|
6
|
+
|
7
|
+
* Remove calls to handle_deprecated_vars [jon@zomo.co.uk]
|
8
|
+
|
9
|
+
*1.0.0.pre1* (July 11th 2010)
|
2
10
|
--------------------------------------------------
|
3
11
|
* Add service_root variable, to allow the service dir to live outside the deployment tree. [jon@zomo.co.uk]
|
4
12
|
|
@@ -18,7 +18,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
18
18
|
namespace :deploy do
|
19
19
|
desc "Sets up services directories for supervising listeners using runit"
|
20
20
|
task :setup_service_dirs do
|
21
|
-
handle_deprecated_vars
|
22
21
|
application_service_dir = "#{service_root}/#{service_dir}"
|
23
22
|
runit_helper.run_or_sudo "mkdir -p #{application_service_dir}"
|
24
23
|
|
@@ -30,7 +29,6 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
30
29
|
|
31
30
|
desc "Links created service dir into master service dir so runit starts the listeners"
|
32
31
|
task :start, :roles => :app do
|
33
|
-
handle_deprecated_vars
|
34
32
|
each_listener do |listener_port|
|
35
33
|
service_dir = "#{service_root}/#{service_dir}/#{listener_port}"
|
36
34
|
runit_helper.run_or_sudo "ln -nsf #{service_dir} #{master_service_dir}/#{application}-#{listener_port}"
|
@@ -39,15 +37,14 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
39
37
|
|
40
38
|
desc "restart task for runit supervised listeners"
|
41
39
|
task :restart, :roles => :app do
|
42
|
-
handle_deprecated_vars
|
43
40
|
sv.usr2 listener_dirs
|
44
41
|
end
|
45
42
|
|
46
43
|
desc "Hook into after setup to create the runit service directory"
|
47
|
-
task :
|
48
|
-
handle_deprecated_vars
|
44
|
+
task :post_setup do
|
49
45
|
setup_service_dirs
|
50
46
|
end
|
47
|
+
after :setup, "deploy:post_setup"
|
51
48
|
|
52
49
|
def each_listener
|
53
50
|
listener_base_port.upto(listener_base_port + listener_count - 1) do |listener_port|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-runit-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1876988175
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 1.0.0.
|
10
|
+
- pre2
|
11
|
+
version: 1.0.0.pre2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Chris McGrath
|
@@ -17,10 +17,39 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-08-03 00:00:00 +01:00
|
21
21
|
default_executable:
|
22
|
-
dependencies:
|
23
|
-
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
24
|
+
name: mocha
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ">="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 3
|
32
|
+
segments:
|
33
|
+
- 0
|
34
|
+
version: "0"
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: capistrano
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 15
|
46
|
+
segments:
|
47
|
+
- 2
|
48
|
+
- 0
|
49
|
+
- 0
|
50
|
+
version: 2.0.0
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
24
53
|
description: This library extends Capistrano to allow processes to be supervised using the runit package. It replaces some of the standard tasks with runit versions and includes tasks and helpers to create the service directory layout and populate it with run scripts. It has support fcgi, mongrel and merb listeners, and tries to make it easy to add other services in your deploy.rb.
|
25
54
|
email:
|
26
55
|
- chris@octopod.info
|