Class: PoisePython::Resources::PythonVirtualenv::Provider
- Inherits:
-
PythonProviders::Base
- Object
- Chef::Provider
- PythonProviders::Base
- PoisePython::Resources::PythonVirtualenv::Provider
- Includes:
- PythonCommandMixin
- Defined in:
- lib/poise_python/resources/python_virtualenv.rb
Overview
The default provider for python_virtualenv
.
Instance Method Summary collapse
Instance Method Details
#python_binary ⇒ Object
100 101 102 103 104 105 106 |
# File 'lib/poise_python/resources/python_virtualenv.rb', line 100 def python_binary if node.platform_family?('windows') ::File.join(new_resource.path, 'Scripts', 'python.exe') else ::File.join(new_resource.path, 'bin', 'python') end end |
#python_environment ⇒ Object
108 109 110 111 112 113 114 |
# File 'lib/poise_python/resources/python_virtualenv.rb', line 108 def python_environment if new_resource.parent_python new_resource.parent_python.python_environment else {} end end |