Permalink
Browse files

Merge branch 'master' of https://github.com/semmons99/pik into semmon…

…s99-master
  • Loading branch information...
2 parents 78bea91 + 39eaa88 commit c76b6fc986e035330993b727730f68b2ca3139ad @vertiginous committed Jan 25, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/pik/installer.rb
View
@@ -1,13 +1,19 @@
require 'pik/contrib/uri_ext'
require 'pik/contrib/unzip'
require 'pik/contrib/progressbar'
+require 'pik/config_file'
module Pik
module Installer
+ def config
+ @config ||= ConfigFile.new
+ end
+
def download_directory
- @download_dir ||= Pik.home + 'downloads'
+ @download_dir ||= config.global.fetch(:download_dir,
+ Pik.home + 'downloads')
end
def download(package, opts={})
@@ -93,4 +99,4 @@ def extract(target, file)
end
-end
+end

0 comments on commit c76b6fc

Please sign in to comment.