[refs file-store-4] one more check

This commit is contained in:
Alexander Machehin 2012-08-31 11:02:58 +06:00
parent e0c25563f0
commit 6a50e18932
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ namespace :project do
desc "Truncate blobs from git repo" desc "Truncate blobs from git repo"
task :remove_archives => :environment do task :remove_archives => :environment do
raise 'Need set GIT_PROJECTS_DIR' if ENV['GIT_PROJECTS_DIR'].blank? raise 'Need set GIT_PROJECTS_DIR' if ENV['GIT_PROJECTS_DIR'].blank?
raise 'Need set CLONE_PATH' if ENV['CLONE_PATH'].blank?
abf_existing_log = File.open "#{ENV['CLONE_PATH']}/projects_with_abf_yml.log", 'w' abf_existing_log = File.open "#{ENV['CLONE_PATH']}/projects_with_abf_yml.log", 'w'
projects = if uname = ENV['OWNER'] projects = if uname = ENV['OWNER']
owner = User.find_by_uname(uname) || Group.find_by_uname(uname) owner = User.find_by_uname(uname) || Group.find_by_uname(uname)