class KPM::BaseInstaller
def update_plugin_identifier(plugins_dir, plugin_key, type, coordinates, artifact_info)
def update_plugin_identifier(plugins_dir, plugin_key, type, coordinates, artifact_info) # In case the artifact on disk already existed and the installation is skipped, info[:bundle_dir] is null but the path exists in info[:dir_name] path = artifact_info[:bundle_dir] || artifact_info[:dir_name] # The plugin_name needs to be computed after the fact (after the installation) because some plugin archive embed their directory structure plugin_name = Pathname.new(path).parent.split[1].to_s plugins_manager = PluginsManager.new(plugins_dir, @logger) plugins_manager.add_plugin_identifier_key(plugin_key, plugin_name, type, coordinates) end