Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Moving the build message into #ready? so #grade is clean
  • Loading branch information
qrush committed Jul 9, 2009
1 parent ba2873b commit e3c9bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/report_card/grader.rb
Expand Up @@ -9,7 +9,6 @@ def initialize(project, config)


def grade def grade
return unless ready? return unless ready?
STDERR.puts ">> Building metrics for #{project.name}"
configure configure
generate generate
wrapup if success? wrapup if success?
Expand All @@ -23,6 +22,7 @@ def wrapup
def ready? def ready?
dir = Integrity::ProjectBuilder.new(project).send(:export_directory) dir = Integrity::ProjectBuilder.new(project).send(:export_directory)
if File.exist?(dir) if File.exist?(dir)
STDERR.puts ">> Building metrics for #{project.name}"
Dir.chdir dir Dir.chdir dir
else else
STDERR.puts ">> Skipping, directory does not exist: #{dir}" STDERR.puts ">> Skipping, directory does not exist: #{dir}"
Expand Down

0 comments on commit e3c9bbf

Please sign in to comment.