diff options
author | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2016-03-10 13:48:58 +0100 |
---|---|---|
committer | Heiko Bernloehr <Heiko.Bernloehr@FreeIT.de> | 2016-03-10 13:53:02 +0100 |
commit | ec0b75ee44bf5e565db62136380dee883ed22bbb (patch) | |
tree | bcc66a87961e52f445899242745f1437521277bb | |
parent | 16046e9b7ce06aa20f1eadbc494d1bd18fbf110d (diff) | |
download | vipeval-ec0b75ee44bf5e565db62136380dee883ed22bbb.tar.gz vipeval-ec0b75ee44bf5e565db62136380dee883ed22bbb.zip |
Fix get to delete.
-rw-r--r-- | lib/job_event.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/job_event.rb b/lib/job_event.rb index 6e7b76e..fecfec1 100644 --- a/lib/job_event.rb +++ b/lib/job_event.rb @@ -29,7 +29,7 @@ class JobEvent def fetch_exercise(job) # URI#path returns the path with leading "/" path= URI(job["EvaluationJob"]["resources"]["exercise"]).path[1..-1] - exercise= @ecs.connection[path].get # FIXME change to delete + exercise= @ecs.connection[path].delete Rails.logger.info "***** JobEvent#fetch_exercise: #{path} = #{exercise}" exercise end @@ -39,7 +39,7 @@ class JobEvent def fetch_evaluation(job) # URI#path returns the path with leading "/" path= URI(job["EvaluationJob"]["resources"]["evaluation"]).path[1..-1] - evaluation= @ecs.connection[path].get # FIXME change to delete + evaluation= @ecs.connection[path].delete Rails.logger.info "***** JobEvent#fetch_evaluation: #{path} = #{evaluation}" evaluation end @@ -49,7 +49,7 @@ class JobEvent def fetch_solution(job) # URI#path returns the path with leading "/" path= URI(job["EvaluationJob"]["resources"]["solution"]).path[1..-1] - solution= @ecs.connection[path].get # FIXME change to delete + solution= @ecs.connection[path].delete Rails.logger.info "***** JobEvent#fetch_solution: #{path} = #{solution}" solution end |