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
Dummy, Msi, PortablePyPy, PortablePyPy3, Scl, System, Resources::PythonVirtualenv::Provider
Instance Method Summary collapse
-
#action_install
The
install
action for thepython_runtime
resource. -
#action_uninstall
abstract
The
uninstall
action for thepython_runtime
resource. -
#python_binary ⇒ String
abstract
The path to the
python
binary. -
#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.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/poise_python/python_providers/base.rb', line 43 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.
62 63 64 65 66 |
# File 'lib/poise_python/python_providers/base.rb', line 62 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.
72 73 74 |
# File 'lib/poise_python/python_providers/base.rb', line 72 def python_binary raise NotImplementedError end |
#python_environment ⇒ Hash<String, String>
The environment variables for this Python. This is an output property.
79 80 81 |
# File 'lib/poise_python/python_providers/base.rb', line 79 def python_environment {} end |