Sha256: 2baab8aa495cbe169aa209b25c7f0f85da347ba4db8128d3e98d5f6a0f02ed8f
Contents?: true
Size: 540 Bytes
Versions: 4
Compression:
Stored size: 540 Bytes
Contents
module Octopi class Branch < Base include Resource set_resource_name "branch", "branches" resource_path "/repos/show/:id" def self.find(user, repo, api=ANONYMOUS_API) user = user.login if user.is_a? User repo = repo.name if repo.is_a? Repository self.validate_args(user => :user, repo => :repo) api = ANONYMOUS_API if repo.is_a?(Repository) && !repo.private find_plural([user,repo,'branches'], :resource, api){ |i| {:name => i.first, :hash => i.last } } end end end
Version data entries
4 entries across 4 versions & 4 rubygems
Version | Path |
---|---|
ddollar-octopi-0.0.13 | lib/octopi/branch.rb |
fcoury-octopi-0.1.0 | lib/octopi/branch.rb |
philnash-octopi-0.0.12 | lib/octopi/branch.rb |
octopi-0.1.0 | lib/octopi/branch.rb |