Sha256: f6b311829215fd74e8d6e9c861ff777475f6e91adf3af1b9075bb1290f24aed8
Contents?: true
Size: 860 Bytes
Versions: 1
Compression:
Stored size: 860 Bytes
Contents
# frozen_string_literal: true module DroneCI module TemplatesAPI # https://docs.drone.io/api/templates/template_create/ def template_create(namespace, **body) api.post("templates/#{namespace}", body) end # https://docs.drone.io/api/templates/template_delete/ def template_delete(namespace, name) api.delete("templates/#{namespace}/#{name}") end # https://docs.drone.io/api/templates/template_info/ def template_info(namespace, name) api.get("templates/#{namespace}/#{name}") end # https://docs.drone.io/api/templates/template_list/ def template_list(namespace) api.get("templates/#{namespace}") end # https://docs.drone.io/api/templates/template_update/ def template_update(namespace, name, **body) api.patch("templates/#{namespace}/#{name}", body) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
drone-ci-0.1.0 | lib/drone-ci/api/templates.rb |