You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added the task to parser.rake, but no rake tasks are working. Every task encounters the Nil:NilClass error. I'm wondering if the rakefile just isn't getting the speck data (hence a Nil error) through Net::HTTP/ research.amnh.org. Will we need to traverse that firewall again?
(in parser.rake)
desc "Generic Parser for speck files"
task :generic, [:file_name, :model_class] => :environment do |task, args|
spec_uri = "/users/abbott/dudata/milkyway/specks/#{args.file_name}"
spec_file = Tempfile.new('speck')
Net::HTTP.start("research.amnh.org") do |http|
resp = http.get(spec_uri)
open(spec_file, "wb") do |file|
file.write(resp.body)
end
end
This one's pretty easy, we should be able to use the general parser.
The text was updated successfully, but these errors were encountered: