module Bundler::Plugin

def root

Otherwise, points to global root, in Bundler.user_bundle_path("plugin")
If run in an app, points to local root, in app_config_path

The directory root for all plugin related data
def root
  @root ||= if SharedHelpers.in_bundle?
    local_root
  else
    global_root
  end
end