class PoisePython::PythonProviders::Dummy
Inversion provider for the `python_runtime` resource to use a fake Python, for use in unit tests.
@since 1.1.0 @provides dummy
Public Class Methods
default_inversion_options(node, resource)
click to toggle source
Manual overrides for dummy data.
@api private
Calls superclass method
PoisePython::PythonProviders::Base::default_inversion_options
# File lib/poise_python/python_providers/dummy.rb, line 40 def self.default_inversion_options(node, resource) super.merge({ python_binary: ::File.join('', 'python'), python_environment: nil, }) end
provides_auto?(node, _resource)
click to toggle source
Enable by default on ChefSpec.
@api private
# File lib/poise_python/python_providers/dummy.rb, line 33 def self.provides_auto?(node, _resource) node.platform?('chefspec') end
Public Instance Methods
action_install()
click to toggle source
The `install` action for the `python_runtime` resource.
@return [void]
# File lib/poise_python/python_providers/dummy.rb, line 50 def action_install # This space left intentionally blank. end
action_uninstall()
click to toggle source
The `uninstall` action for the `python_runtime` resource.
@return [void]
# File lib/poise_python/python_providers/dummy.rb, line 57 def action_uninstall # This space left intentionally blank. end
python_binary()
click to toggle source
Path to the non-existent python.
@return [String]
# File lib/poise_python/python_providers/dummy.rb, line 64 def python_binary options['python_binary'] end
python_environment()
click to toggle source
Environment for the non-existent python.
@return [String]
Calls superclass method
PoisePython::PythonProviders::Base#python_environment
# File lib/poise_python/python_providers/dummy.rb, line 71 def python_environment options['python_environment'] || super end