Class: PoisePython::PythonProviders::Base
- Inherits:
-
Chef::Provider
- Object
- Chef::Provider
- PoisePython::PythonProviders::Base
- Defined in:
- lib/poise_python/python_providers/base.rb
Overview
Direct Known Subclasses
PortablePyPy, Scl, System, Resources::PythonVirtualenv::Provider
Instance Method Summary collapse
-
#action_install
The
installaction for thepython_runtimeresource. -
#action_uninstall
abstract
The
uninstallaction for thepython_runtimeresource. -
#python_binary ⇒ String
abstract
The path to the
pythonbinary. -
#python_environment ⇒ Hash<String, String>
The environment variables for this Python.
Instance Method Details
#action_install
This method returns an undefined value.
The install action for the python_runtime resource.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/poise_python/python_providers/base.rb', line 42 def action_install # First inner converge for the Python install. do install_python end # Second inner converge for the support tools. This is needed because # we run a python command to check if venv is available. do install_pip install_setuptools install_wheel install_virtualenv end end |
#action_uninstall
This method is abstract.
This method returns an undefined value.
The uninstall action for the python_runtime resource.
61 62 63 64 65 |
# File 'lib/poise_python/python_providers/base.rb', line 61 def action_uninstall do uninstall_python end end |
#python_binary ⇒ String
This method is abstract.
The path to the python binary. This is an output property.
71 72 73 |
# File 'lib/poise_python/python_providers/base.rb', line 71 def python_binary raise NotImplementedError end |
#python_environment ⇒ Hash<String, String>
The environment variables for this Python. This is an output property.
78 79 80 |
# File 'lib/poise_python/python_providers/base.rb', line 78 def python_environment {} end |