Skip to content

Instantly share code, notes, and snippets.

@zzak
Created August 30, 2010 20:32
Show Gist options
  • Save zzak/558001 to your computer and use it in GitHub Desktop.
Save zzak/558001 to your computer and use it in GitHub Desktop.
get '/' do
@dc = Dalli::Client.new('localhost:11211')
@dc.set('info', HTTParty.get("#{base_uri}/repos/show/#{userid}/#{repoid}"))
@info = @dc.get('info')
@dc.set('collaborators', HTTParty.get("#{base_uri}/repos/show/#{userid}/#{repoid}/collaborators"))
@collaborators = @dc.get('collaborators')
@dc.set('blobs', HTTParty.get("#{base_uri}/blob/all/#{userid}/#{repoid}/master"))
@blobs = @dc.get('blobs')
erb :index
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment