summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-12-18 16:44:46 -0800
committerAndre Arko <andre@arko.net>2013-12-18 16:44:56 -0800
commitc94528aced37cf806fdfab3505f9dd3111083655 (patch)
tree4137d58e85ae6abf5961af81ee0cd1875f252353
parent77caa558d6427cdc56f6abb74e883a26d0982e12 (diff)
downloadbundler-c94528aced37cf806fdfab3505f9dd3111083655.tar.gz
Ensure the log directory exists
-rw-r--r--lib/bundler/installer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index 278e14cb46..beb831e199 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -202,7 +202,8 @@ module Bundler
# Create a debug installation log limited to 1MB
@logger ||= begin
require 'logger'
- Logger.new("#{Bundler.app_config_path}/install.log", 1, 1048576)
+ Bundler.app_config_path.mktree
+ Logger.new(Bundler.app_config_path.join("install.log"), 1, 1048576)
end
end