Warning

This document is for an in-development version of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.jobs.runners.util.cli.shell

"""
Abstract base class for runners which execute commands via a shell.
"""
from abc import (
    ABCMeta,
    abstractmethod
)

import six


[docs]@six.add_metaclass(ABCMeta) class BaseShellExec(object):
[docs] @abstractmethod def __init__(self, *args, **kwargs): """ Constructor for shell executor instance. """
[docs] def execute(self, cmd, persist=False, timeout=60): """ Execute the specified command via defined shell. """