class LabClient::Tags

Specifics

Specifics

Specifics

Specifics

Specifics

Specifics

Public Instance Methods

create(project_id, query) click to toggle source
# File lib/labclient/tags/create.rb, line 28
def create(project_id, query)
  project_id = format_id(project_id)

  client.request(:post, "projects/#{project_id}/repository/tags", Tag, query)
end
delete(project_id, tag_id) click to toggle source
# File lib/labclient/tags/delete.rb, line 18
def delete(project_id, tag_id)
  project_id = format_id(project_id)
  tag_id = format_id(tag_id)

  client.request(:delete, "projects/#{project_id}/repository/tags/#{tag_id}", Tag)
end
list(project_id, query = {}) click to toggle source
# File lib/labclient/tags/list.rb, line 28
def list(project_id, query = {})
  project_id = format_id(project_id)

  client.request(:get, "projects/#{project_id}/repository/tags", Tag, query)
end
release(project_id, tag_id, description) click to toggle source
# File lib/labclient/tags/release.rb, line 20
def release(project_id, tag_id, description)
  project_id = format_id(project_id)
  tag_id = format_id(tag_id)

  client.request(:post, "projects/#{project_id}/repository/tags/#{tag_id}/release", nil, description: description)
end
show(project_id, tag_id) click to toggle source
# File lib/labclient/tags/show.rb, line 19
def show(project_id, tag_id)
  project_id = format_id(project_id)
  tag_id = format_id(tag_id)

  client.request(:get, "projects/#{project_id}/repository/tags/#{tag_id}", Tag)
end
update(project_id, tag_id, description) click to toggle source
# File lib/labclient/tags/update.rb, line 20
def update(project_id, tag_id, description)
  project_id = format_id(project_id)
  tag_id = format_id(tag_id)

  client.request(:put, "projects/#{project_id}/repository/tags/#{tag_id}/release", nil, description: description)
end