Skip to content

Instantly share code, notes, and snippets.

@mandric
Created May 20, 2011 20:37
Show Gist options
  • Save mandric/983745 to your computer and use it in GitHub Desktop.
Save mandric/983745 to your computer and use it in GitHub Desktop.
phenny module
"""
Phenny module for a readthedocs.com docs push.
"""
import urllib2
def readthedocs(phenny, input):
"""Start a docs build on medic-dashboard.readthedocs.org."""
req = urllib2.Request(url='http://readthedocs.org/build/806', data='')
f = urllib2.urlopen(req)
res = f.read()
phenny.say("%s for http://medic-dashboard.readthedocs.org" % res)
readthedocs.commands = ['pushdocs']
readthedocs.priority = 'high'
if __name__ == '__main__':
print __doc__.strip()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment