jnewland-san_juan 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -4
- data/lib/san_juan.rb +12 -7
- metadata +1 -1
data/README.textile
CHANGED
data/lib/san_juan.rb
CHANGED
@@ -13,33 +13,33 @@ module SanJuan
|
|
13
13
|
unless @meta_tasks_defined
|
14
14
|
namespace :all do
|
15
15
|
desc "Describe the status of the running tasks on each server"
|
16
|
-
task :status
|
17
|
-
san_juan.roles.each { |role| send(role
|
16
|
+
task :status do
|
17
|
+
san_juan.roles.each { |role| send(role).send(:status) }
|
18
18
|
end
|
19
19
|
|
20
20
|
desc "Start god"
|
21
21
|
task :start do
|
22
|
-
san_juan.roles.each { |role| send(role
|
22
|
+
san_juan.roles.each { |role| send(role).send(:start) }
|
23
23
|
end
|
24
24
|
|
25
25
|
desc "Reloading God Config"
|
26
26
|
task :reload do
|
27
|
-
san_juan.roles.each { |role| send(role
|
27
|
+
san_juan.roles.each { |role| send(role).send(:reload) }
|
28
28
|
end
|
29
29
|
|
30
30
|
desc "Start god interactively"
|
31
31
|
task :start_interactive do
|
32
|
-
san_juan.roles.each { |role| send(role
|
32
|
+
san_juan.roles.each { |role| send(role).send(:start_interactive) }
|
33
33
|
end
|
34
34
|
|
35
35
|
desc "Quit god, but not the processes it's monitoring"
|
36
36
|
task :quit do
|
37
|
-
san_juan.roles.each { |role| send(role
|
37
|
+
san_juan.roles.each { |role| send(role).send(:quit) }
|
38
38
|
end
|
39
39
|
|
40
40
|
desc "Terminate god and all monitored processes"
|
41
41
|
task :terminate do
|
42
|
-
san_juan.roles.each { |role| send(role
|
42
|
+
san_juan.roles.each { |role| send(role).send(:terminate) }
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -71,6 +71,11 @@ module SanJuan
|
|
71
71
|
sudo 'god terminate'
|
72
72
|
end
|
73
73
|
|
74
|
+
desc "Describe the status of the running tasks"
|
75
|
+
task :status, :roles => role do
|
76
|
+
sudo 'god status'
|
77
|
+
end
|
78
|
+
|
74
79
|
watches.each do |watch|
|
75
80
|
namespace watch do
|
76
81
|
%w(start restart stop unmonitor remove log).each do |command|
|