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