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
-
#allow_downgrade ⇒ Boolean
Allow downgrading the package.
-
#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.
127 128 129 130 131 132 133 134 |
# File 'lib/poise_python/resources/python_package.rb', line 127 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
#allow_downgrade ⇒ Boolean
Allow downgrading the package.
125 |
# File 'lib/poise_python/resources/python_package.rb', line 125 attribute(:allow_downgrade, kind_of: [TrueClass, FalseClass], default: false) |
#group ⇒ String, ...
System group to install the package.
107 |
# File 'lib/poise_python/resources/python_package.rb', line 107 attribute(:group, kind_of: [String, Integer, NilClass], default: lazy { default_group }) |
#install_options ⇒ String, ...
Options string to be used with pip install
.
111 |
# File 'lib/poise_python/resources/python_package.rb', line 111 attribute(:install_options, kind_of: [String, Array, NilClass, FalseClass], default: nil) |
#list_options ⇒ String, ...
Options string to be used with pip list
.
115 |
# File 'lib/poise_python/resources/python_package.rb', line 115 attribute(:list_options, kind_of: [String, Array, NilClass, FalseClass], default: nil) |
#user ⇒ String, ...
System user to install the package.
119 |
# File 'lib/poise_python/resources/python_package.rb', line 119 attribute(:user, kind_of: [String, Integer, NilClass], default: lazy { default_user }) |