class Github::Repos::PubSubHubbub

def subscribe_service(*args)


:event => 'watch'
:token => 'abc123',
:room => 'Commits',
:subdomain => 'github',
github.repos.pubsubhubbub.subscribe_service 'user-name', 'repo-name', 'campfire',
github = Github.new :oauth_token => '...'
= Examples

* :event - Required hash key for the type of event. The default event is push
* service-name - Required string
* repo-name - Required string,
= Parameters

Subscribe repository to service hook through pubsubhubbub
def subscribe_service(*args)
  params   = arguments(args, :required => [:user, :repo, :service]).params
  event    = params.delete('event') || 'push'
  topic    = "#{site}/#{user}/#{repo}/events/#{event}"
  callback = "github://#{service}?#{params.serialize}"
  subscribe(topic, callback)
end