Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

patch for #issue86

  • Loading branch information...
commit 39eaa883de419fed5acd7fa480346bc9682fbca5 1 parent 7334f88
@semmons99 semmons99 authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/pik/installer.rb
View
10 lib/pik/installer.rb
@@ -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={})
@@ -91,4 +97,4 @@ def extract(target, file)
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.