Sha256: fa2eb67b8083fe7e7ea837ee8971b8df52f79d771b56fda8b80fe0fed54aa75f

Contents?: true

Size: 679 Bytes

Versions: 2

Compression:

Stored size: 679 Bytes

Contents

namespace :license do
  desc 'write out example config file'
  task :init do
    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
    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-0.3.0 lib/tasks/license_finder.rake
license_finder-0.2.0 lib/tasks/license_finder.rake