Commits

Rod Morison committed cc5fb7c Draft

New docstrings

Comments (0)

Files changed (2)

installers/python.py

+"""
+Install and setup python virtualenv and virtualenvwrapper
+"""
 
 from os import getenv
 from datetime import datetime

installers/utils.py

     
 
 def append_file(file_name, lines, comment="", dup_check=True, lf="\n"):
-    """Append lines to a file. If dup_check, make sure those lines aren't already in the file"""
+    """
+    Append lines to a file. If dup_check, make sure those 
+    lines aren't already in the file
+    """
 
     assert isinstance(lines, str) and isinstance(comment, str) and isinstance(lf, str)
 
             abort("%s: unable to append text '''%s'''" % (file_name, lines))
 
 def find_remote(file_name, text):
+    """
+    Find text in a remote file
+    """
     index = run('''python -c 'print open("%s").read().find("""%s""")' ''' % (file_name, text))
     if index.failed:
         return -1
     return int(index)
 
 def file_exists(file_name):
+    """
+    Check if a remote file exists
+    """
     with settings(
         hide('warnings', 'running', 'stdout', 'stderr'),
         warn_only=True