diff options
author | Andre Arko <andre@arko.net> | 2013-12-18 16:44:46 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-12-18 16:44:56 -0800 |
commit | c94528aced37cf806fdfab3505f9dd3111083655 (patch) | |
tree | 4137d58e85ae6abf5961af81ee0cd1875f252353 /lib/bundler/installer.rb | |
parent | 77caa558d6427cdc56f6abb74e883a26d0982e12 (diff) | |
download | bundler-c94528aced37cf806fdfab3505f9dd3111083655.tar.gz |
Ensure the log directory exists
Diffstat (limited to 'lib/bundler/installer.rb')
-rw-r--r-- | lib/bundler/installer.rb | 3 |
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 |