bin/sb in starting_blocks-0.2.1 vs bin/sb in starting_blocks-0.3.1
- old
+ new
@@ -28,7 +28,12 @@
if ARGV.include? '--watch'
StartingBlocks::Watcher.start_watching Dir, options
elsif ARGV.include? '--off'
StartingBlocks::Extensions::BlinkyLighting.turn_off!
else
- run_all_specs options
+ results = run_all_specs options
+
+ parsed_results = StartingBlocks::Publisher.result_parser.parse(results)
+ success = parsed_results[:color] == :green
+
+ exit success
end