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.
-
#install_options ⇒ String, ...
Options string to be used with
pip install
. -
#list_options ⇒ String, ...
Options string to be used with
pip list
. -
#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.
116 117 118 119 120 121 122 123 |
# File 'lib/poise_python/resources/python_package.rb', line 116 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.
102 |
# File 'lib/poise_python/resources/python_package.rb', line 102 attribute(:group, kind_of: [String, Integer, NilClass]) |
#install_options ⇒ String, ...
Options string to be used with pip install
.
106 |
# File 'lib/poise_python/resources/python_package.rb', line 106 attribute(:install_options, kind_of: [String, NilClass, FalseClass], default: nil) |
#list_options ⇒ String, ...
Options string to be used with pip list
.
110 |
# File 'lib/poise_python/resources/python_package.rb', line 110 attribute(:list_options, kind_of: [String, NilClass, FalseClass], default: nil) |
#user ⇒ String, ...
System user to install the package.
114 |
# File 'lib/poise_python/resources/python_package.rb', line 114 attribute(:user, kind_of: [String, Integer, NilClass]) |