method
mkdir_p
v2_6_3 -
Show latest stable
- Class:
Bundler
mkdir_p(path, options = {})public
No documentation available.
# File lib/bundler.rb, line 382
def mkdir_p(path, options = {})
if requires_sudo? && !options[:no_sudo]
sudo "mkdir -p '#{path}'" unless File.exist?(path)
else
SharedHelpers.filesystem_access(path, :write) do |p|
FileUtils.mkdir_p(p)
end
end
end