slippinj.cli package

Submodules

slippinj.cli.deploy_configuration module

class slippinj.cli.deploy_configuration.DeployConfiguration(environment, configuration_parser)[source]

Bases: object

Manage the deploy configuration file

environment_exists()[source]

Check if environment configuration exists in configuration file :return: boolean

file_exists()[source]

Check if configuration file is present in filesystem :return: boolean

get(key)[source]

Get the given parameter from the configuration file for the current environment :param key: string :return: string

set(key, value)[source]

Save given key and value into given configuration file inside current environment :param key: string :param value: string

slippinj.cli.ssh module

class slippinj.cli.ssh.SSHClient(self_, *args, **kwargs)[source]

Bases: object

Wrapper to use the SSH client library

exec_command(command, public_dns, pem_file, stop_on_error=False)[source]

Execute given command in a machine via SSH :param command: string :param public_dns: string :param pem_file: string :param stop_on_error: boolean :return: string

get_pem_path(pem_file)[source]

Return the full path to the pem file based on the given name and configured directory where all private keys are :param pem_file: string :return: string

open_sftp(public_dns, pem_file)[source]

Open an SFTP connection to the given machine :param public_dns: string :param pem_file: string :return: SFTP

slippinj.cli.workflow_configuration module

class slippinj.cli.workflow_configuration.WorkflowConfiguration(self_, *args, **kwargs)[source]

Bases: object

Read the configuration for the given workflow

get_workflow_configuration(configuration_file)[source]

Get the workflow configuration given the file or files where it can be found :param configuration_file: string or list, if a list is given all the files will be read sorted as they are provided :return: dict

Module contents