Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 2984a85

Browse files
committed
Add output indicating build status
1 parent b770cd8 commit 2984a85

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Strainer CHANGELOG
22
==================
3+
v3.0.2
4+
------
5+
- Output summary message
6+
37
v3.0.1
48
------
59
- Fix typo in CLI :default (#28)

lib/strainer/runner.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,13 @@ def run!
5050
# Move the logfile back over
5151
FileUtils.mv(Strainer.logfile_path, Strainer.sandbox_path.join('strainer.out'))
5252

53-
abort unless @report.values.collect(&:values).flatten.all?
53+
if @report.values.collect(&:values).flatten.all?
54+
Strainer.ui.say "Strainer marked build OK"
55+
exit(true)
56+
else
57+
Strainer.ui.say "Strainer marked build as failure"
58+
exit(false)
59+
end
5460
end
5561

5662
def hash

lib/strainer/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Strainer
22
# The current version of Strainer
3-
VERSION = '3.0.2'
3+
VERSION = '3.0.3'
44
end

0 commit comments

Comments
 (0)