codebots.utilities#

Collection of helper functions. Most users are not concerned about them.

tokens#

set_token_dir(path)

Set the location where codebots looks for the bots credentials.

reset_token_dir()

Reset the credentials folder to default.

add_token(alias, **kwargs)

Create a json file with the credential settings needed for the bot to operate.

message#

format_message(message[, to_replace])

ssh#

gen_keypair([ssh_folder, password])

Create a set of public and private keys and save them in the given folder.

add_pubkey_to_server(bot, ssh_folder[, os_type])

Adds the public key to the server's list.

deploy#

configure_local(local_repo, server_complete_path)

Configure the local repository to sync with the server.

OS tools#

is_tool(name)

Check whether name is on PATH and marked as executable.

install_msi(file_path)

Perform a silent install of a msi package (Windows only)

install_exe(file_path)

Call the installation executable

install_deb(file_path)

Web tools#

download_file(url, file_path)

[summary]