duty 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/duty/tasks.rb +7 -0
- data/lib/duty/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e29580781a8605e4065b33ebe1635449dbd6aa3
|
4
|
+
data.tar.gz: 35f89aa36570bf3b131160a6a8ccfb6ee82e3248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51bbffb12a1135f370822409dc4cbcd3c827671d0b82a910370a5f68dc2449da97dc4f10ebd1028a29c7fe55ca042c70bf1cb0d8a5286fc2370d96c996dafccd
|
7
|
+
data.tar.gz: eac70d0bb708678d15d4604e6d37b392d96271029e514c6cc5d8fb39cef761b626783ea15c9021bda8159937c23650f0f270b22a9e10b868de50c6e88725fcd7
|
data/lib/duty/tasks.rb
CHANGED
@@ -59,22 +59,27 @@ module Duty
|
|
59
59
|
|
60
60
|
def task_explain
|
61
61
|
@view.task_explain(self)
|
62
|
+
self
|
62
63
|
end
|
63
64
|
|
64
65
|
def task_success
|
65
66
|
@view.task_success(self)
|
67
|
+
self
|
66
68
|
end
|
67
69
|
|
68
70
|
def task_failure
|
69
71
|
@view.task_failure(self)
|
72
|
+
self
|
70
73
|
end
|
71
74
|
|
72
75
|
def command_success(command)
|
73
76
|
@view.command_success(command)
|
77
|
+
command
|
74
78
|
end
|
75
79
|
|
76
80
|
def command_failure(command)
|
77
81
|
@view.command_failure(command)
|
82
|
+
command
|
78
83
|
end
|
79
84
|
|
80
85
|
def parallel(&blk)
|
@@ -138,6 +143,7 @@ module Duty
|
|
138
143
|
ensure
|
139
144
|
@logger << summary
|
140
145
|
@logger << error
|
146
|
+
@callable
|
141
147
|
end
|
142
148
|
end
|
143
149
|
|
@@ -164,6 +170,7 @@ module Duty
|
|
164
170
|
ensure
|
165
171
|
@logger << summary
|
166
172
|
@logger << error
|
173
|
+
[@stdout, @stderr, @status]
|
167
174
|
end
|
168
175
|
end
|
169
176
|
|
data/lib/duty/version.rb
CHANGED