Sha256: cd1ff4212a82717fd8f33c75b2587724d2579c70d3f2db5d47478fb853e44b75

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

#!/usr/bin/env ruby
require_relative "../lib/licensee"

path = ARGV[0] || Dir.pwd

project = Licensee::Project.new(path)
license = project.license_file

if license
  puts "License file: #{project.send(:license_blob)[:name]}"
  puts "License: #{license.match ? license.match.meta['title'] : 'no license'}"
  puts "Confidence: #{license.confidence}%"
  puts "Method: #{license.matcher.class}"
else
  puts "Unknown"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
licensee-4.5.0 bin/licensee