Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
discovery
enoslib
Commits
07d1cdc5
Commit
07d1cdc5
authored
Mar 03, 2021
by
SIMONIN Matthieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update doc
parent
6f8897d9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
8 deletions
+22
-8
README.rst
README.rst
+0
-7
changelog.rst
changelog.rst
+2
-0
docs/apidoc/objects.rst
docs/apidoc/objects.rst
+7
-0
docs/index.rst
docs/index.rst
+7
-0
enoslib/local.py
enoslib/local.py
+6
-1
No files found.
README.rst
View file @
07d1cdc5
...
...
@@ -34,13 +34,6 @@ EnOSlib has been initially developed in the context of the `Discovery
GPLv3 licence. It's a library written in Python: you are free to import it in
your code and cherry-pick any of its functions.
At a glance
-----------
.. raw:: html
<script id="asciicast-iVBbJPeoWA8botcQXPcNGEac3" src="https://asciinema.org/a/iVBbJPeoWA8botcQXPcNGEac3.js" data-speed="3" async></script>
Links
-----
...
...
changelog.rst
View file @
07d1cdc5
...
...
@@ -54,6 +54,8 @@ Changelog
class citizens. In particular, ``DockerHost`` is a specialization of
``Host``.
- Introduce ``enoslib.local`` to manage the local machine as an EnOSlib host.
- Providers: Any provider can now be used using a context manager. The
resources will be release when leaving the context.
...
...
docs/apidoc/objects.rst
View file @
07d1cdc5
...
...
@@ -10,6 +10,13 @@ Base Objects
:members: Network, DefaultNetwork, Host
Local
-----
.. automodule:: enoslib.local
:members: LocalHost
Docker
------
...
...
docs/index.rst
View file @
07d1cdc5
...
...
@@ -6,6 +6,13 @@
.. include:: ../README.rst
At a glance
-----------
.. raw:: html
<script id="asciicast-iVBbJPeoWA8botcQXPcNGEac3" src="https://asciinema.org/a/iVBbJPeoWA8botcQXPcNGEac3.js" data-speed="3" async></script>
.. toctree::
:maxdepth: 2
:hidden:
...
...
enoslib/local.py
View file @
07d1cdc5
...
...
@@ -2,7 +2,12 @@ from .objects import Host
class
LocalHost
(
Host
):
"""Representation of your local machine."""
"""Representation of a local machine.
Args:
alias: alias for a local machine
must be unique
"""
def
__init__
(
self
,
alias
:
str
=
"localhost"
):
super
().
__init__
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment