|
|
|
@ -12,7 +12,7 @@ namespace :homework do
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
task :gitfiledown => :environment do
|
|
|
|
|
begin
|
|
|
|
|
# begin
|
|
|
|
|
puts ENV['args']
|
|
|
|
|
system("tmp/homework_file") if File.exist?("tmp/homework_file")
|
|
|
|
|
homework_common = HomeworkCommon.find(ENV['args'])
|
|
|
|
@ -35,9 +35,9 @@ namespace :homework do
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
rescue Exception => e
|
|
|
|
|
Rails.logger.error(e.message)
|
|
|
|
|
end
|
|
|
|
|
# rescue Exception => e
|
|
|
|
|
# Rails.logger.error(e.message)
|
|
|
|
|
# end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|