Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #9 from TildeWill/master

Adding output to rake task for CI to allow faster violation diagnosis
  • Loading branch information...
commit 8a672957c0d787e1da7bec78ecfc8be73b1cb106 2 parents 2d3974f + 14fde2e
@pivotalcommon pivotalcommon authored
Showing with 9 additions and 2 deletions.
  1. +9 −2 lib/tasks/license_finder.rake
View
11 lib/tasks/license_finder.rake
@@ -14,9 +14,16 @@ namespace :license do
puts "Dependencies that need approval:"
puts LicenseFinder::Finder.new.action_items
end
-
+
desc 'All gems approved for use'
task 'action_items:ok' => :generate_dependencies do
- exit 1 unless LicenseFinder::Finder.new.action_items.size == 0
+ found = LicenseFinder::Finder.new.action_items
+ if found.size > 0
+ puts "Dependencies that need approval:"
+ puts found
+ else
+ puts "All gems are approved for use"
+ end
+ exit 1 unless found.size == 0
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.