lib/licensed/source/manifest.rb
def write_license_from_source_licenses(dir, sources)
          licenses = source_comment_licenses(sources).uniq
          return if licenses.nil? || licenses.empty?

          license_path = File.join(dir, "LICENSE")
          File.open(license_path, "w") do |f|
            f.puts(licenses.join("\n#{LICENSE_SEPARATOR}\n"))
          end

          license_path
        end
# Writes any licenses found in source file comments to a LICENSE
# file at `dir`
# Returns the path to the license file
Writes any licenses found in source file comments to a LICENSE
file at `dir`
Returns the path to the license file
Writes any licenses found in source file comments to a LICENSE file at ` dir ` Returns the path to the license file
def write_license_from_source_licenses(dir, sources)
          licenses = source_comment_licenses(sources).uniq
          return if licenses.nil? || licenses.empty?
          license_path = File.join(dir, "LICENSE")
          File.open(license_path, "w") do |f|
            f.puts(licenses.join("\n#{LICENSE_SEPARATOR}\n"))
          end
          license_path
        end
def write_license_from_source_licenses ( dir , sources ) licenses = source_comment_licenses ( sources ) . uniq return if licenses . nil? || licenses . empty? license_path = File . join ( dir , "LICENSE" ) File . open ( license_path , "w" ) do | f | f . puts ( licenses . join ( "\n#{LICENSE_SEPARATOR}\n" ) ) end license_path end
Writes any licenses found in source file comments to a LICENSE
file at `dir`
Returns the path to the license file
Writes any licenses found in source file comments to a LICENSE file at ` dir ` Returns the path to the license file
dir
sources