79eca9c8fb
* Initial ansible-test support for collections. * Include cloud config in delegation payload. * Add missing types import and fix `t` shadowing. * Fix plugin traceback when config_path not set. * Fix encoding issues. * Remove unused imports. * More encoding fixes. * Handle delegation outside exception handler. * Inject ssh keys only if not already in place. * More defensive approach to getting remote pwd. * Add missing string format var. * Correct PowerShell require regex. * Rename `is_install` and `INSTALL_ROOT`.
18 lines
446 B
Python
18 lines
446 B
Python
"""Common code for source providers."""
|
|
from __future__ import (absolute_import, division, print_function)
|
|
__metaclass__ = type
|
|
|
|
import abc
|
|
|
|
import lib.types as t
|
|
|
|
from .. import (
|
|
PathProvider,
|
|
)
|
|
|
|
|
|
class SourceProvider(PathProvider):
|
|
"""Base class for source providers."""
|
|
@abc.abstractmethod
|
|
def get_paths(self, path): # type: (str) -> t.List[str]
|
|
"""Return the list of available content paths under the given path."""
|