Method: Gitlab::Client::Templates#license_templates

Defined in:
lib/gitlab/client/templates.rb

#license_templates(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Get all license templates.

Examples:

Gitlab.license_templates
Gitlab.license_templates(popular: true)

Parameters:

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • popular(optional) (Boolean)

    If passed, returns only popular licenses.

Returns:


82
83
84
# File 'lib/gitlab/client/templates.rb', line 82

def license_templates(options = {})
  get('/templates/licenses', query: options)
end