mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28531 from rallytime/fix-24585
Add versionadded directives to virtualenv_mod state/module
This commit is contained in:
commit
63bd3e52b3
2 changed files with 18 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Create virtualenv environments
|
||||
Create virtualenv environments.
|
||||
|
||||
.. versionadded:: 0.17.0
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
@ -88,9 +90,17 @@ def create(path,
|
|||
Set ownership for the virtualenv
|
||||
runas : None
|
||||
Set ownership for the virtualenv
|
||||
use_vt
|
||||
|
||||
use_vt : False
|
||||
Use VT terminal emulation (see ouptut while installing)
|
||||
|
||||
.. versionadded:: 2015.5.0
|
||||
|
||||
saltenv : 'base'
|
||||
Specify a different environment. The default environment is ``base``.
|
||||
|
||||
.. versionadded:: 2014.1.0
|
||||
|
||||
.. note::
|
||||
The ``runas`` argument is deprecated as of 2014.1.0. ``user`` should be
|
||||
used instead.
|
||||
|
@ -303,6 +313,8 @@ def get_resource_path(venv, package_or_requirement, resource_name):
|
|||
'''
|
||||
Returns the path to a resource of a package or a distribution inside a virtualenv
|
||||
|
||||
.. versionadded:: 2015.5.0
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
@ -330,6 +342,8 @@ def get_resource_content(venv, package_or_requirement, resource_name):
|
|||
'''
|
||||
Returns the content of a resource of a package or a distribution inside a virtualenv
|
||||
|
||||
.. versionadded:: 2015.5.0
|
||||
|
||||
CLI Example:
|
||||
|
||||
.. code-block:: bash
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
'''
|
||||
Setup of Python virtualenv sandboxes
|
||||
====================================
|
||||
Setup of Python virtualenv sandboxes.
|
||||
|
||||
.. versionadded:: 0.17.0
|
||||
'''
|
||||
from __future__ import absolute_import
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue