Skip to content

Commit

Permalink
Fixes #8079 - Can update docker tags in repository
Browse files Browse the repository at this point in the history
  • Loading branch information
parthaa committed Oct 23, 2014
1 parent 728c305 commit 6044e18
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/runcible/extensions/repository.rb
Expand Up @@ -283,6 +283,14 @@ def docker_images(id)
unit_search(id, criteria).map { |i| i['metadata'].with_indifferent_access }
end

# Updates the docker tags in a repo
# @param [Hash] tags for an image in the following format
# the [{:image_id => <image hash>, :tag =>"value"}]
# @return [RestClient::Response]
def update_docker_tags(repo_id, tags)
update(repo_id, :scratchpad => {:tags => tags})
end

# Creates or updates a sync schedule for a repository
#
# @param [String] repo_id the ID of the repository
Expand Down

0 comments on commit 6044e18

Please sign in to comment.