Commit 7076007947e5b679a5ddad425d6b88a159425745
1 parent
9dc5d1a5
Exists in
master
and in
29 other branches
ActionItem305: read IMPORT_DIR from environment
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
script/import-cooperation.net
@@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../config/environment' | @@ -3,7 +3,7 @@ require File.dirname(__FILE__) + '/../config/environment' | ||
3 | 3 | ||
4 | include ActionController::UrlWriter | 4 | include ActionController::UrlWriter |
5 | 5 | ||
6 | -IMPORT_DIR = '/home/terceiro/src/cooperation-migration/data/export' | 6 | +IMPORT_DIR = ENV['IMPORT_DIR'] || '/home/terceiro/src/cooperation-migration/data/export' |
7 | 7 | ||
8 | if ARGV.size == 0 | 8 | if ARGV.size == 0 |
9 | puts "usage: %s <username> [ <username> [ <username> ... ] ]" % $PROGRAM_NAME | 9 | puts "usage: %s <username> [ <username> [ <username> ... ] ]" % $PROGRAM_NAME |