Class: PoiseApplicationPython::Resources::PythonExecute::Resource

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

Overview

An application_python_execute resource to run Python commands inside an Application cookbook deployment.

Examples:

application '/srv/myapp' do
  python_execute 'setup.py install'
end

Since:

  • 4.0.0

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Resource

Returns a new instance of Resource.

Since:

  • 4.0.0



40
41
42
43
44
45
46
# File 'lib/poise_application_python/resources/python_execute.rb', line 40

def initialize(*args)
  super
  # Clear some instance variables so my defaults work.
  remove_instance_variable(:@cwd)
  remove_instance_variable(:@group)
  remove_instance_variable(:@user)
end