File Manager

Path: /opt/chef/embedded/lib/ruby/gems/2.7.0/gems/inspec-core-4.22.1/lib/inspec/utils/

Viewing File: spdx.rb

class Spdx
  def self.licenses
    spdx_file = File.join(File.dirname(__FILE__), "spdx.txt").freeze
    File.read(spdx_file).split("\n")
  end

  def self.valid_license?(license)
    licenses.include?(license)
  end
end