class PluginFailedToRunError
Attributes
exception[R]
plugin_name[R]
plugin_path[R]
Public Class Methods
new(plugin_name,plugin_path,exception)
click to toggle source
# File lib/chefspec/ohai.rb, line 256 def initialize(plugin_name,plugin_path,exception) @plugin_name = plugin_name @plugin_path = plugin_path @exception = exception # Fix the backtrace path from the fixtures directory to the plugin file exception.backtrace.unshift exception.backtrace.shift.gsub('spec/fixtures',plugin_path) end
Public Instance Methods
message()
click to toggle source
# File lib/chefspec/ohai.rb, line 267 def message "Plugin #{plugin_name} #{plugin_path} failed:\n#{exception.message}" end