Method: Bundler::Plugin.root

Defined in:
lib/bundler/plugin.rb

.rootObject

The directory root for all plugin related data

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



137
138
139
140
141
142
143
# File 'lib/bundler/plugin.rb', line 137

def root
  @root ||= if SharedHelpers.in_bundle?
    local_root
  else
    global_root
  end
end