Class: PoisePython::PythonProviders::Dummy

Inherits:
Base
  • Object
show all
Defined in:
lib/poise_python/python_providers/dummy.rb

Overview

Inversion provider for the python_runtime resource to use a fake Python, for use in unit tests.

Since:

  • 1.1.0

Provides:

  • dummy

Instance Method Summary collapse

Instance Method Details

#action_install

This method returns an undefined value.

The install action for the python_runtime resource.

Since:

  • 1.1.0



50
51
52
# File 'lib/poise_python/python_providers/dummy.rb', line 50

def action_install
  # This space left intentionally blank.
end

#action_uninstall

This method returns an undefined value.

The uninstall action for the python_runtime resource.

Since:

  • 1.1.0



57
58
59
# File 'lib/poise_python/python_providers/dummy.rb', line 57

def action_uninstall
  # This space left intentionally blank.
end

#python_binaryString

Path to the non-existent python.

Returns:

  • (String)

Since:

  • 1.1.0



64
65
66
# File 'lib/poise_python/python_providers/dummy.rb', line 64

def python_binary
  options['python_binary']
end

#python_environmentString

Environment for the non-existent python.

Returns:

  • (String)

Since:

  • 1.1.0



71
72
73
# File 'lib/poise_python/python_providers/dummy.rb', line 71

def python_environment
  options['python_environment'] || super
end