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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8859b7cf5b79a37d5fcb1fa2f23b05905b287b15
4
- data.tar.gz: e338d56cb5912651b49f34217eed860b189820b8
3
+ metadata.gz: 2e29580781a8605e4065b33ebe1635449dbd6aa3
4
+ data.tar.gz: 35f89aa36570bf3b131160a6a8ccfb6ee82e3248
5
5
  SHA512:
6
- metadata.gz: c6923f6199cf0001806a1f3259feb89fd2fecdb9128319a92c299966528adc2393705eecb41101764936e6bd817e73366cc473fdd8183900a3d14d5ed392266e
7
- data.tar.gz: afda6ff19cdca9f23cbfc7b2ea044163b9f6d7fd9931f3134e1c9af9fa386edf194a76348c5f3273936de8fdf40a6cc0593b003e750cf34da68f87afa6da974d
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
@@ -1,3 +1,3 @@
1
1
  module Duty
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: duty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Owiesniak