This method is only available on newer versions.
The first available version (v2_6_3) is shown here.
validate_plugin!(plugin_path)
public
Checks if the gem is good to be a plugin
At present it only checks whether it contains plugins.rb file
@param [Pathname] plugin_path the path plugin
is installed at @raise [MalformattedPlugin] if plugins.rb file is not found
# File lib/bundler/plugin.rb, line 213
def validate_plugin!(plugin_path)
plugin_file = plugin_path.join(PLUGIN_FILE_NAME)
raise MalformattedPlugin, "#{PLUGIN_FILE_NAME} was not found in the plugin." unless plugin_file.file?
end