public
Rubygem
Description: Capistrano Recipies for God
Homepage: http://github.com/jnewland/san_juan
Clone URL: git://github.com/jnewland/san_juan.git
Search Repo:
fix :all namespace
jnewland (author)
Mon Jun 23 16:13:45 -0700 2008
commit  26600fa85a8539451eea6ad1ecae03666f070790
tree    94427cff66ce409504cc4d4017a3a9b42754030a
parent  b7f1b8c3c23dea5c96800654327e8eeb612c4e5d
...
13
14
15
16
17
 
 
18
19
20
21
22
 
23
24
25
26
27
 
28
29
30
31
32
 
33
34
35
36
37
 
38
39
40
41
42
 
43
44
45
...
71
72
73
 
 
 
 
 
74
75
76
...
13
14
15
 
 
16
17
18
19
20
21
 
22
23
24
25
26
 
27
28
29
30
31
 
32
33
34
35
36
 
37
38
39
40
41
 
42
43
44
45
...
71
72
73
74
75
76
77
78
79
80
81
0
@@ -13,33 +13,33 @@ module SanJuan
0
       unless @meta_tasks_defined
0
         namespace :all do
0
           desc "Describe the status of the running tasks on each server"
0
- task :status, :roles => san_juan.roles do
0
- san_juan.roles.each { |role| send(role, :status) }
0
+ task :status do
0
+ san_juan.roles.each { |role| send(role).send(:status) }
0
           end
0
 
0
           desc "Start god"
0
           task :start do
0
- san_juan.roles.each { |role| send(role, :start) }
0
+ san_juan.roles.each { |role| send(role).send(:start) }
0
           end
0
 
0
           desc "Reloading God Config"
0
           task :reload do
0
- san_juan.roles.each { |role| send(role, :reload) }
0
+ san_juan.roles.each { |role| send(role).send(:reload) }
0
           end
0
 
0
           desc "Start god interactively"
0
           task :start_interactive do
0
- san_juan.roles.each { |role| send(role, :start_interactive) }
0
+ san_juan.roles.each { |role| send(role).send(:start_interactive) }
0
           end
0
 
0
           desc "Quit god, but not the processes it's monitoring"
0
           task :quit do
0
- san_juan.roles.each { |role| send(role, :quit) }
0
+ san_juan.roles.each { |role| send(role).send(:quit) }
0
           end
0
 
0
           desc "Terminate god and all monitored processes"
0
           task :terminate do
0
- san_juan.roles.each { |role| send(role, :terminate) }
0
+ san_juan.roles.each { |role| send(role).send(:terminate) }
0
           end
0
         end
0
       end
0
@@ -71,6 +71,11 @@ module SanJuan
0
           sudo 'god terminate'
0
         end
0
 
0
+ desc "Describe the status of the running tasks"
0
+ task :status, :roles => role do
0
+ sudo 'god status'
0
+ end
0
+
0
         watches.each do |watch|
0
           namespace watch do
0
             %w(start restart stop unmonitor remove log).each do |command|

Comments

    No one has commented yet.