Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
a1fred committed Nov 24, 2021
1 parent 7b33ec0 commit 68bda7d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions carnival/hosts/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ class Host:
Базовый класс для хостов
"""

addr: str
"""
Адрес хоста
"""

def __init__(self, **context: typing.Any) -> None:
"""
:param context: Контекст хоста
Expand Down
5 changes: 5 additions & 0 deletions carnival/hosts/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ class LocalHost(base.Host):
Локальный хост, работает по локальному терминалу
"""

addr: str = "local"
"""
Адрес хоста, всегда `local`
"""

def __init__(self, **context: typing.Any) -> None:
"""
:param context: Контекст хоста
Expand Down
5 changes: 5 additions & 0 deletions carnival/hosts/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ class SshHost(base.Host):
SSH хост
"""

addr: str
"""
Домен либо ip хоста
"""

def __init__(
self,
addr: str,
Expand Down
2 changes: 2 additions & 0 deletions docs/source/hosts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

.. autoclass:: carnival.hosts.local.LocalHost()
:members:
:special-members: __init__

.. autoclass:: carnival.hosts.local.LocalConnection()
:members:
Expand All @@ -27,6 +28,7 @@ SSH

.. autoclass:: carnival.hosts.ssh.SshHost()
:members:
:special-members: __init__

.. autoclass:: carnival.hosts.ssh.SshConnection()
:members:

0 comments on commit 68bda7d

Please sign in to comment.