Exception: Bundler::InsecureInstallPathError
- Inherits:
-
BundlerError
- Object
- StandardError
- BundlerError
- Bundler::InsecureInstallPathError
- Defined in:
- lib/bundler/errors.rb
Instance Method Summary collapse
-
#initialize(name, path) ⇒ InsecureInstallPathError
constructor
A new instance of InsecureInstallPathError.
- #message ⇒ Object
Methods inherited from BundlerError
Constructor Details
#initialize(name, path) ⇒ InsecureInstallPathError
Returns a new instance of InsecureInstallPathError.
220 221 222 223 |
# File 'lib/bundler/errors.rb', line 220 def initialize(name, path) @name = name @path = path end |
Instance Method Details
#message ⇒ Object
225 226 227 228 229 |
# File 'lib/bundler/errors.rb', line 225 def "Bundler cannot reinstall #{@name} because there's a previous installation of it at #{@path} that is unsafe to remove.\n" \ "The parent of #{@path} is world-writable and does not have the sticky bit set, making it insecure to remove due to potential vulnerabilities.\n" \ "Please change the permissions of #{File.dirname(@path)} or choose a different install path." end |