Class: Bundler::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/bundler/command.rb

Instance Method Summary collapse

Instance Method Details

#exec(command_name, args) ⇒ Object



8
9
10
11
12
13
# File 'lib/bundler/command.rb', line 8

def exec(command_name, args)
  gem_paths_make_file = (Bundler::SharedHelpers.root + '.bundle' + 'gem_paths.make')
  puts "Updating #{gem_paths_make_file} ..."
  FileUtils.mkdir_p gem_paths_make_file.dirname unless File.directory?(gem_paths_make_file.dirname)
  File.write(gem_paths_make_file, GemPaths::List.to_make.join("\n") + "\n")
end