Sha256: cee1daa04182512a14bb72448011a2ea3598ee7f82cf996b16fb641398b68aeb
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
namespace :license do desc 'write out example config file' task :init do `mkdir -p ./config` FileUtils.cp(File.join(File.dirname(__FILE__), '..', '..', 'files', 'license_finder.yml'), './config/license_finder.yml') end desc 'generate a list of dependency licenses' task :generate_dependencies do LicenseFinder::Finder.new.write_files end desc 'action items' task :action_items => :generate_dependencies do LicenseFinder::CLI.new.check_for_action_items end desc 'return a failure status code for unapproved dependencies' task 'action_items:ok' => :generate_dependencies do puts "rake license:action_items:ok is deprecated and will be removed in version 1.0. Use rake license:action_items instead." found = LicenseFinder::Finder.new.action_items if found.size == 0 puts "All gems are approved for use" else exit 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
license_finder-0.5.0 | lib/tasks/license_finder.rake |