Sha256: d28755c94ca60e06976792c785fc6c7118535c1c84c6ca65f5b2ad066540f1e6

Contents?: true

Size: 775 Bytes

Versions: 9

Compression:

Stored size: 775 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))

require 'simplabs/excellent'
require 'pathname'

excellent = Simplabs::Excellent::Runner.new

if ARGV.first =~ /html:[^\s]+/
  begin
    output = File.open(ARGV.first.sub(/html:/, ''), 'w+')
    formatter = Simplabs::Excellent::Formatters::Html.new(output)
    ARGV.shift
  rescue
  end
else
  formatter = Simplabs::Excellent::Formatters::Text.new
end

if ARGV.empty?
  puts "\n  You must specify one or more directories to analyse, e.g.:\n"
  puts "\n    excellent app/\n\n"
  exit 1
end

begin
  excellent.check_paths(ARGV, formatter)
rescue ArgumentError => ex
  puts "EXCEPTION: #{ex.message}"
  puts "\n** Excellent cannot find the paths specified!\n\n"
  exit 1
end

exit 0

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simplabs-excellent-1.3.0 bin/excellent
simplabs-excellent-1.3.1 bin/excellent
simplabs-excellent-1.4.0 bin/excellent
simplabs-excellent-1.4.1 bin/excellent
simplabs-excellent-1.4.2 bin/excellent
simplabs-excellent-1.5.0 bin/excellent
simplabs-excellent-1.5.1 bin/excellent
simplabs-excellent-1.5.2 bin/excellent
simplabs-excellent-1.5.3 bin/excellent