Sha256: 137be57a0fd5874fbbb12143d743ef2fe43c4a9c43c950872d5a704611263a80

Contents?: true

Size: 335 Bytes

Versions: 10

Compression:

Stored size: 335 Bytes

Contents

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

10 entries across 10 versions & 1 rubygems

Version Path
licensee-9.11.0 lib/licensee/commands/license_path.rb
licensee-9.10.1 lib/licensee/commands/license_path.rb
licensee-9.10.0 lib/licensee/commands/license_path.rb
licensee-9.9.4 lib/licensee/commands/license_path.rb
licensee-9.9.3 lib/licensee/commands/license_path.rb
licensee-9.9.2 lib/licensee/commands/license_path.rb
licensee-9.9.1 lib/licensee/commands/license_path.rb
licensee-9.9.0 lib/licensee/commands/license_path.rb
licensee-9.9.0.beta.3 lib/licensee/commands/license_path.rb
licensee-9.9.0.beta.2 lib/licensee/commands/license_path.rb