module Bundler::Plugin
def validate_plugin!(plugin_path)
-
(MalformattedPlugin)- if plugins.rb file is not found
Parameters:
-
plugin_path(Pathname) -- the path plugin is installed at
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