class Gitomator::Service::Tagging
Public Instance Methods
Delete all metadata associated with the given tag (in the given namespace).
@param namespace [String] @param tag [String]
# File lib/gitomator/service/tagging.rb, line 92 def delete_metadata(namespace, tag) service_call(__callee__, namespace, tag) end
Get the metadata associated with the given tag in the given namespace. If a `tag` is not specified, get metadata for all tags in the namespace.
@param namespace [String] @param tag [String]
@return [Hash<String,Object>] The tag's metadata. If no tag was specified, return a Hash that maps each tag to its metadata.
# File lib/gitomator/service/tagging.rb, line 68 def metadata(namespace, tag=nil) service_call(__callee__, namespace, tag) end
Remove tag from object.
@param namespace [String] @param id_or_name [String/Number] @param tag [String]
# File lib/gitomator/service/tagging.rb, line 28 def remove_tag(namespace, id_or_name, tag) service_call(__callee__, namespace, id_or_name, tag) end
Search for objects by tag(s).
@param namespace [String] @param query [String/Hash] - Either a single tag (String) or a query (Hash).
@return Enumerable of object identifiers.
# File lib/gitomator/service/tagging.rb, line 54 def search(namespace, query) service_call(__callee__, namespace, query) end
Add the given metadata to the given tag (in the given namespace). You can remove metadata properties by updating their value to nil.
@param namespace [String] @param tag [String] @param metadata [String]
# File lib/gitomator/service/tagging.rb, line 81 def set_metadata(namespace, tag, metadata) service_call(__callee__, namespace, tag, metadata) end