Created
May 20, 2011 20:37
-
-
Save mandric/983745 to your computer and use it in GitHub Desktop.
phenny module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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