Sha256: 651a9ca71ff238ad5a16b7a51464f1983242ecf52657cf07b164786d937bb634

Contents?: true

Size: 366 Bytes

Versions: 11

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

class LicenseeCLI < Thor
  desc 'license-path [PATH]', "Returns the path to the given project's license file"
  def license_path(_path)
    if project.license_file
      if remote?
        say project.license_file.path
      else
        say File.expand_path project.license_file.path
      end
    else
      exit 1
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
licensee-9.16.0 lib/licensee/commands/license_path.rb
licensee-9.15.3 lib/licensee/commands/license_path.rb
licensee-9.15.2 lib/licensee/commands/license_path.rb
licensee-9.15.1 lib/licensee/commands/license_path.rb
licensee-9.15.0 lib/licensee/commands/license_path.rb
licensee-9.14.1 lib/licensee/commands/license_path.rb
licensee-9.14.0 lib/licensee/commands/license_path.rb
licensee-9.13.2 lib/licensee/commands/license_path.rb
licensee-9.13.1 lib/licensee/commands/license_path.rb
licensee-9.13.0 lib/licensee/commands/license_path.rb
licensee-9.12.0 lib/licensee/commands/license_path.rb