Commits

Mikhail Korobov  committed a6e4d94

Some love for 'inside_src' decorator

  • Participants
  • Parent commits 681c3e0

Comments (0)

Files changed (1)

File fab_deploy/utils.py

 from fabric import network
 
 
-__all__ = ['run_as', 'update_env', 'inside_project', 'inside_virtualenv',
+__all__ = ['run_as', 'update_env',
+           'inside_project', 'inside_virtualenv', 'inside_src',
            'delete_pyc', 'print_env', 'detect_os']
 
 def _codename(distname, version, id):
     return inner
 
 def inside_src(func):
+    """
+    Decorator. Use it to perform actions inside source dir with
+    virtualenv activated.
+    """
     @wraps(func)
     def inner(*args, **kwargs):
         with cd(env.conf.SRC_DIR):