module PoisePython::PythonCommandMixin::Resource

Mixin for resources which run Python commands.

Public Instance Methods

virtualenv(name) click to toggle source

Wrapper for setting the parent to be a virtualenv.

@param name [String] Name of the virtualenv resource. @return [void]

# File lib/poise_python/python_command_mixin.rb, line 36
def virtualenv(name)
  if name.is_a?(PoisePython::Resources::PythonVirtualenv::Resource)
    parent_python(name)
  else
    parent_python("python_virtualenv[#{name}]")
  end
end