lib/massa/analyzer.rb in massa-0.0.5 vs lib/massa/analyzer.rb in massa-0.0.6
- old
+ new
@@ -1,13 +1,14 @@
require 'bundler/setup' # Set up gems listed in the Gemfile.
require 'ostruct'
require 'yaml'
+require 'English'
module Massa
class Analyzier
attr_reader :verbose
- alias :verbose? :verbose
+ alias verbose? verbose
def self.run!(options)
new(options).run!
end
@@ -42,10 +43,10 @@
system(tool.command)
else
IO.popen(tool.command, err: [:child, :out]) { |io| command_output = io.read }
end
- unless $?.success?
+ unless $CHILD_STATUS.success?
Massa::CLI.colorize :red, "¯\\_(ツ)_/¯ #{tool.description} failed."
puts command_output if command_output.to_s != ''
exit 1 if tool.required
end