pyinfra: added docstring
This commit is contained in:
parent
b8e43ac2b9
commit
74ba2860e4
|
@ -5,7 +5,13 @@ from pyinfra.operations import git, server, files, systemd
|
||||||
|
|
||||||
|
|
||||||
def deploy_teams_bot(unix_user: str, bot_email: str, bot_passwd: str, dbdir: str = None):
|
def deploy_teams_bot(unix_user: str, bot_email: str, bot_passwd: str, dbdir: str = None):
|
||||||
"""Deploy TeamsBot to a UNIX user"""
|
"""Deploy TeamsBot to a UNIX user, with specified credentials
|
||||||
|
|
||||||
|
:param unix_user: the existing UNIX user of the bot
|
||||||
|
:param bot_email: the email address for the bot account
|
||||||
|
:param bot_passwd: the password for the bot's email account
|
||||||
|
:param dbdir: the directory where the bot's data will be stored. default: ~/.config/teams-bot/email@example.org
|
||||||
|
"""
|
||||||
|
|
||||||
clone_xdcget = git.repo(
|
clone_xdcget = git.repo(
|
||||||
name="Pull the teams-bot repository",
|
name="Pull the teams-bot repository",
|
||||||
|
|
Loading…
Reference in a new issue