class KPM::BaseInstaller

def update_plugin_identifier(plugins_dir, plugin_key, type, coordinate_map, artifact_info)

def update_plugin_identifier(plugins_dir, plugin_key, type, coordinate_map, artifact_info)
  path = artifact_info[:bundle_dir]
  # 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, coordinate_map)
end