Method: Bundler::Plugin::Index#initialize
- Defined in:
- lib/bundler/plugin/index.rb
#initialize ⇒ Index
Returns a new instance of Index.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/bundler/plugin/index.rb', line 25 def initialize @plugin_paths = {} @commands = {} @sources = {} @hooks = {} @load_paths = {} begin load_index(global_index_file, true) rescue PermissionError # no need to fail when on a read-only FS, for example nil rescue ArgumentError => e # ruby 3.4 checks writability in Dir.tmpdir raise unless e.&.include?("could not find a temporary directory") nil end load_index(local_index_file) if SharedHelpers.in_bundle? end |