module Bundler::Plugin

def root

in user_bundle_path
Points to root in app_config_path if ran in an app else points to the one

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