Mercurial > repos > bcclaywell > argo_navis
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d67268158946 |
---|---|
1 import click | |
2 | |
3 from planemo.cli import pass_context | |
4 from planemo import galaxy_serve | |
5 from planemo import options | |
6 | |
7 | |
8 @click.command('serve') | |
9 @options.optional_tools_arg(multiple=True) | |
10 @options.galaxy_serve_options() | |
11 @pass_context | |
12 def cli(ctx, paths, **kwds): | |
13 """Launch a Galaxy instance with the specified tool in the tool panel. | |
14 | |
15 The Galaxy tool panel will include just the referenced tool or tools (by | |
16 default all the tools in the current working directory) and the upload | |
17 tool. | |
18 | |
19 planemo will search parent directories to see if any is a Galaxy instance | |
20 - but one can pick the Galaxy instance to use with the ``--galaxy_root`` | |
21 option or force planemo to download a disposable instance with the | |
22 ``--install_galaxy`` flag. | |
23 | |
24 ``planemo`` will run the Galaxy instance in an existing virtualenv if one | |
25 exists in a ``.venv`` directory in the specified ``--galaxy_root``. | |
26 Otherwise, the Galaxy instance will run in a clean virtualenv created in | |
27 ``/tmp``. | |
28 | |
29 ``planemo`` uses temporarily generated config files and environment | |
30 variables to attempt to shield this execution of Galaxy from manually | |
31 launched runs against that same Galaxy root - but this may not be bullet | |
32 proof yet so please careful and do not try this against production Galaxy | |
33 instances. | |
34 """ | |
35 galaxy_serve.serve(ctx, paths, **kwds) |