class PoisePython::Resources::PythonVirtualenv::Resource
A `python_virtualenv` resource to manage Python virtual environments.
@provides python_virtualenv @action create @action delete @example
python_virtualenv '/opt/myapp'
Public Class Methods
new(*args)
click to toggle source
Lock the default provider.
@api private
Calls superclass method
# File lib/poise_python/resources/python_virtualenv.rb, line 62 def initialize(*args) super # Sidestep all the normal provider lookup stuffs. This is kind of # gross but it will do for now. The hard part is that the base classes # for the resource and provider are using Poise::Inversion, which we # don't want to use for python_virtualenv. @provider = Provider end
Public Instance Methods
version(arg=nil)
click to toggle source
Upstream attribute we don't support. Sets are an error and gets always return nil.
@api private @param arg [Object] Ignored @return [nil]
# File lib/poise_python/resources/python_virtualenv.rb, line 77 def version(arg=nil) raise NoMethodError if arg end
virtualenv_version(arg=nil)
click to toggle source
(see version
)
# File lib/poise_python/resources/python_virtualenv.rb, line 82 def virtualenv_version(arg=nil) raise NoMethodError if arg end