Method: Gitlab::Client::Templates#dockerfile_template

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

#dockerfile_template(key) ⇒ Gitlab::ObjectifiedHash

Get a single Dockerfile template.

Examples:

Gitlab.dockerfile_template('Binary')

Parameters:

  • key (String)

    The key of the Dockerfile template

Returns:

[View source]

27
28
29
# File 'lib/gitlab/client/templates.rb', line 27

def dockerfile_template(key)
  get("/templates/dockerfiles/#{key}")
end