Exception: Bundler::InsecureInstallPathError

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

Instance Method Summary collapse

Methods inherited from BundlerError

all_errors, status_code

Constructor Details

#initialize(path) ⇒ InsecureInstallPathError

Returns a new instance of InsecureInstallPathError.



177
178
179
# File 'lib/bundler/errors.rb', line 177

def initialize(path)
  @path = path
end

Instance Method Details

#messageObject



181
182
183
184
185
186
# File 'lib/bundler/errors.rb', line 181

def message
  "The installation path is insecure. Bundler cannot continue.\n" \
  "#{@path} is world-writable (without sticky bit).\n" \
  "Bundler cannot safely replace gems in world-writeable directories due to potential vulnerabilities.\n" \
  "Please change the permissions of this directory or choose a different install path."
end