Source

xenv / xenv / handlers / create.py

Full commit
'''
Creating a New Xenv
===================

The Xenv has a set of directories that mimics a typical *nix filesystem hierarchy.

For a basic overview, see http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard
'''
from xenv.models import XenvFS


class CreateHandler(object):
    '''
    A command line handler that will create a new xenv from
    scratch. This involves making a directory and installing a
    virtualenv.
    '''
    
    def __call__(self, args):
        xenv = XenvFS(root=args.root)
        xenv.create_venv()
        return xenv