Class: PoiseApplicationPython::Resources::Virtualenv::Resource
- Inherits:
-
PoisePython::Resources::PythonVirtualenv::Resource
- Object
- PoisePython::Resources::PythonVirtualenv::Resource
- PoiseApplicationPython::Resources::Virtualenv::Resource
- Includes:
- AppMixin
- Defined in:
- lib/poise_application_python/resources/virtualenv.rb
Overview
An application_virtualenv resource to manage Python virtual
environments inside an Application cookbook deployment.
Instance Attribute Summary collapse
-
#path ⇒ String
Override the normal path property to use name/.virtualenv for better compatibility with the application resource DSL.
Instance Method Summary collapse
-
#after_created ⇒ Object
private
Set this resource as the app_state's parent python.
Instance Attribute Details
#path ⇒ String
Override the normal path property to use name/.virtualenv for better compatibility with the application resource DSL.
49 |
# File 'lib/poise_application_python/resources/virtualenv.rb', line 49 attribute(:path, kind_of: String, default: lazy { default_path }) |
Instance Method Details
#after_created ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Set this resource as the app_state's parent python.
54 55 56 57 58 59 60 |
# File 'lib/poise_application_python/resources/virtualenv.rb', line 54 def after_created super.tap do |val| # Force evaluation so we get any current parent if set. parent_python app_state_python(self) end end |