Class: PoisePython::Resources::PythonPackage::Resource
- Inherits:
-
Chef::Resource::Package
- Object
- Chef::Resource::Package
- PoisePython::Resources::PythonPackage::Resource
- Includes:
- PythonCommandMixin
- Defined in:
- lib/poise_python/resources/python_package.rb
Overview
A python_package resource to manage Python installations using pip.
Instance Attribute Summary collapse
-
#group ⇒ String, ...
System group to install the package.
-
#user ⇒ String, ...
System user to install the package.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(*args) ⇒ Resource
Returns a new instance of Resource.
98 99 100 101 102 103 104 105 |
# File 'lib/poise_python/resources/python_package.rb', line 98 def initialize(*args) super # For older Chef. @resource_name = :python_package # We don't have these actions. @allowed_actions.delete(:purge) @allowed_actions.delete(:reconfig) end |
Instance Attribute Details
#group ⇒ String, ...
System group to install the package.
92 |
# File 'lib/poise_python/resources/python_package.rb', line 92 attribute(:group, kind_of: [String, Integer, NilClass]) |
#user ⇒ String, ...
System user to install the package.
96 |
# File 'lib/poise_python/resources/python_package.rb', line 96 attribute(:user, kind_of: [String, Integer, NilClass]) |