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

Version Path
ddollar-octopi-0.0.13 lib/octopi/tag.rb
fcoury-octopi-0.0.11 lib/octopi/tag.rb
fcoury-octopi-0.0.6 lib/octopi/tag.rb
fcoury-octopi-0.0.7 lib/octopi/tag.rb
fcoury-octopi-0.0.8 lib/octopi/tag.rb
fcoury-octopi-0.0.9 lib/octopi/tag.rb
fcoury-octopi-0.1.0 lib/octopi/tag.rb
philnash-octopi-0.0.11 lib/octopi/tag.rb
philnash-octopi-0.0.12 lib/octopi/tag.rb
octopi-0.1.0 lib/octopi/tag.rb
octopi-0.0.9 lib/octopi/tag.rb