Sha256: 0902972f304a332add65691cea3979aea4b3903a87ed9867dfa6bfd74b0facb7

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 KB

Contents

#!/usr/bin/env ruby
#
# Copyright:: Copyright 2016, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

$:.unshift File.expand_path("../../lib", __FILE__)

require "license_scout/collector"
require "license_scout/overrides"
require "license_scout/options"

project_dir = ARGV[0] || File.expand_path(Dir.pwd)
project_name = File.basename(project_dir)

# Create the output files under a specific directory in order not to pollute the
# project_dir too much.
output_dir = File.join(project_dir, "license-cache")

overrides = LicenseScout::Overrides.new

opts = LicenseScout::Options.new(overrides: overrides)

collector = LicenseScout::Collector.new(project_name, project_dir, output_dir, opts)

collector.run
report = collector.issue_report

puts report

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
license_scout-0.1.3 bin/license_scout
license_scout-0.1.2 bin/license_scout
license_scout-0.1.1 bin/license_scout