This save_plugin() doesn't open the plugin file. I grabbed some of the code from system.rb's all_plugins() for consistency with plugin_name. The v6plugins hash maps plugin_name to plugin_path. Although there is some strangeness if Ohai::Config[:plugin_path] has two paths that overlap to some degree (e.g., "/Users/", "/Users/plugins"), but this is also an issue with the original Ohai code.

I am all for nailing down the internal maps sooner rather than later.