Sha256: 1f7989700a95e34692c3254a164b3902c20af2555930a445d01eaf5f96688148
Contents?: true
Size: 425 Bytes
Versions: 11
Compression:
Stored size: 425 Bytes
Contents
module Octopi class Tag < Base include Resource set_resource_name "tag" resource_path "/repos/show/:id" def self.find(user, repo) user = user.login if user.is_a? User repo = repo.name if repo.is_a? Repository self.validate_args(user => :user, repo => :repo) find_plural([user,repo,'tags'], :resource){ |i| {:name => i.first, :hash => i.last } } end end end
Version data entries
11 entries across 11 versions & 4 rubygems