Class: PoiseApplicationPython::Resources::PythonPackage::Resource

Inherits:
PoisePython::Resources::PythonPackage::Resource
  • Object
show all
Includes:
AppMixin
Defined in:
lib/poise_application_python/resources/python_package.rb

Overview

An application_python_package resource to install Python packages inside an Application cookbook deployment.

Examples:

application '/srv/myapp' do
  python_package 'requests'
end

Since:

  • 4.0.0

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Resource

Returns a new instance of Resource.

Since:

  • 4.0.0



43
44
45
46
47
# File 'lib/poise_application_python/resources/python_package.rb', line 43

def initialize(*args)
  super
  # For older Chef.
  @resource_name = :application_python_package
end