module Gitlab::Client::Templates

def dockerfile_template(key)

Returns:
  • (Gitlab::ObjectifiedHash) -

Parameters:
  • key (String) -- The key of the Dockerfile template
def dockerfile_template(key)
  get("/templates/dockerfiles/#{key}")
end

def dockerfile_templates

Returns:
  • (Array) -
def dockerfile_templates
  get('/templates/dockerfiles')
end

def gitignore_template(key)

Returns:
  • (Gitlab::ObjectifiedHash) -

Parameters:
  • key (String) -- The key of the gitignore template
def gitignore_template(key)
  get("/templates/gitignores/#{key}")
end

def gitignore_templates

Returns:
  • (Array) -
def gitignore_templates
  get('/templates/gitignores')
end

def gitlab_ci_yml_template(key)

Returns:
  • (Gitlab::ObjectifiedHash) -

Parameters:
  • key (String) -- The key of the gitlab_ci_yml template
def gitlab_ci_yml_template(key)
  get("/templates/gitlab_ci_ymls/#{key}")
end

def gitlab_ci_yml_templates

Returns:
  • (Array) -
def gitlab_ci_yml_templates
  get('/templates/gitlab_ci_ymls')
end

def license_template(key, options = {})

Returns:
  • (Gitlab::ObjectifiedHash) -

Options Hash: (**options)
  • fullname(optional) (String) -- The full-name of the copyright holder
  • project(optional) (String) -- The copyrighted project name.

Parameters:
  • options (Hash) -- A customizable set of options.
  • key (String) -- The key of the license template
def license_template(key, options = {})
  get("/templates/licenses/#{key}", query: options)
end

def license_templates(options = {})

Returns:
  • (Array) -

Options Hash: (**options)
  • popular(optional) (Boolean) -- If passed, returns only popular licenses.

Parameters:
  • options (Hash) -- A customizable set of options.
def license_templates(options = {})
  get('/templates/licenses', query: options)
end