1. Bill Evans
  2. django-fab-deploy


Mikhail Korobov  committed a6e4d94

Some love for 'inside_src' decorator

  • Participants
  • Parent commits 681c3e0
  • Branches default

Comments (0)

Files changed (1)

File fab_deploy/utils.py

View file
  • Ignore whitespace
 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.
+    """
     def inner(*args, **kwargs):
         with cd(env.conf.SRC_DIR):