isomer.tool package

Package: Tool

Contains basic functionality for the isomer management tool.

Command groups

backup configuration create_module database defaults dev environment etc installer instance misc objects rbac remote system user

General binding glue

cli templates tool

ask(question, default=None, data_type='str', show_hint=False)[source]

Interactively ask the user for data

ask_password()[source]

Securely and interactively ask for a password

check_root()[source]

Check if current user has root permissions

finish(ctx)[source]

Signalize the successful conclusion of an operation.

format_result(result)[source]

Format child instance output

get_isomer(source, url, destination, upgrade=False, release=None, shell=None, sudo=None)[source]

Grab a copy of Isomer somehow

get_next_environment(ctx)[source]

Return the next environment

install_isomer(platform_name=None, use_sudo=False, shell=None, cwd='.', show=False, omit_common=False, omit_platform=False)[source]

Installs all dependencies

log(*args, **kwargs)[source]

Log as Emitter:MANAGE

run_process(cwd: str, args: list, shell=None, sudo: Union[bool, str] = None, show: bool = False, stdout: str = None, stdin: str = None, timeout: int = 5) → Tuple[bool, str][source]

Executes an external process via subprocess.check_output :type timeout: int :type stdin: str :type stdout: str :type show: bool :type args: list :type cwd: str :param cwd: Working directory :param args: List of command plus its arguments :param shell: Either a spur.LocalShell or a spur.SshShell :param sudo: Username (or True for root) to use with sudo, False for no sudo :param show: Log executed command at info priority before executing :param stdout: String to fill with std_out data :param stdin: String to supply as std_in data :param timeout: Timeout for the process in seconds :return: A boolean success flag and the whole output :rtype: