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

Commit

Permalink
Add output indicating build status
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Jun 15, 2013
1 parent b770cd8 commit 2984a85
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Strainer CHANGELOG
==================
v3.0.2
------
- Output summary message

v3.0.1
------
- Fix typo in CLI :default (#28)
Expand Down
8 changes: 7 additions & 1 deletion lib/strainer/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ def run!
# Move the logfile back over
FileUtils.mv(Strainer.logfile_path, Strainer.sandbox_path.join('strainer.out'))

abort unless @report.values.collect(&:values).flatten.all?
if @report.values.collect(&:values).flatten.all?
Strainer.ui.say "Strainer marked build OK"
exit(true)
else
Strainer.ui.say "Strainer marked build as failure"
exit(false)
end
end

def hash
Expand Down
2 changes: 1 addition & 1 deletion lib/strainer/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Strainer
# The current version of Strainer
VERSION = '3.0.2'
VERSION = '3.0.3'
end

0 comments on commit 2984a85

Please sign in to comment.