Method: Gitlab::Client::Templates#gitlab_ci_yml_template

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

#gitlab_ci_yml_template(key) ⇒ Gitlab::ObjectifiedHash

Get a single ‘gitlab_ci.yml` template.

Examples:

Gitlab.gitlab_ci_yml_template('Ruby')

Parameters:

  • key (String)

    The key of the gitlab_ci_yml template

Returns:

[View source]

69
70
71
# File 'lib/gitlab/client/templates.rb', line 69

def gitlab_ci_yml_template(key)
  get("/templates/gitlab_ci_ymls/#{key}")
end