method
rm_rf
v2_6_3 -
Show latest stable
-
0 notes -
Class: Bundler
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10
- 2_2_9
- 2_4_6
- 2_5_5
- 2_6_3 (0)
- What's this?
rm_rf(path)
public
Hide source
# File lib/bundler.rb, line 260 def rm_rf(path) FileUtils.remove_entry_secure(path) if path && File.exist?(path) rescue ArgumentError message = It is a security vulnerability to allow your home directory to be world-writable, and bundler can not continue.You should probably consider fixing this issue by running `chmod o-w ~` on *nix.Please refer to http://ruby-doc.org/stdlib-2.1.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-remove_entry_secure for details. File.world_writable?(path) ? Bundler.ui.warn(message) : raise raise PathError, "Please fix the world-writable issue with your #{path} directory" end