Mercurial > repos > bcclaywell > argo_navis
diff venv/lib/python2.7/site-packages/planemo/commands/cmd_serve.py @ 0:d67268158946 draft
planemo upload commit a3f181f5f126803c654b3a66dd4e83a48f7e203b
author | bcclaywell |
---|---|
date | Mon, 12 Oct 2015 17:43:33 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/venv/lib/python2.7/site-packages/planemo/commands/cmd_serve.py Mon Oct 12 17:43:33 2015 -0400 @@ -0,0 +1,35 @@ +import click + +from planemo.cli import pass_context +from planemo import galaxy_serve +from planemo import options + + +@click.command('serve') +@options.optional_tools_arg(multiple=True) +@options.galaxy_serve_options() +@pass_context +def cli(ctx, paths, **kwds): + """Launch a Galaxy instance with the specified tool in the tool panel. + + The Galaxy tool panel will include just the referenced tool or tools (by + default all the tools in the current working directory) and the upload + tool. + + planemo will search parent directories to see if any is a Galaxy instance + - but one can pick the Galaxy instance to use with the ``--galaxy_root`` + option or force planemo to download a disposable instance with the + ``--install_galaxy`` flag. + + ``planemo`` will run the Galaxy instance in an existing virtualenv if one + exists in a ``.venv`` directory in the specified ``--galaxy_root``. + Otherwise, the Galaxy instance will run in a clean virtualenv created in + ``/tmp``. + + ``planemo`` uses temporarily generated config files and environment + variables to attempt to shield this execution of Galaxy from manually + launched runs against that same Galaxy root - but this may not be bullet + proof yet so please careful and do not try this against production Galaxy + instances. + """ + galaxy_serve.serve(ctx, paths, **kwds)