server/bin/make in vulcan-0.5.0 vs server/bin/make in vulcan-0.6.0

- old
+ new

@@ -18,17 +18,17 @@ Dir.chdir(dir) do doc = db.get(id) command = doc["command"] prefix = doc["prefix"] - deps = doc["deps"] || "" + deps = doc["deps"] || [] File.open("input.tgz", "wb") do |file| file.print doc.fetch_attachment("input") end - deps.split(",").each_with_index do |dep, index| + deps.each_with_index do |dep, index| puts "downloading #{dep}" File.open("dep_#{index}.tgz", "wb") do |file| begin file.print RestClient.get(dep) rescue Exception => ex @@ -38,10 +38,10 @@ end FileUtils.mkdir_p "deps" Dir.chdir("deps") do - deps.split(",").each_with_index do |dep, index| + deps.each_with_index do |dep, index| %x{ tar xzf ../dep_#{index}.tgz 2>&1 } end end unless deps.empty?