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.