require 'uri' require 'open-uri' namespace :db do desc 'Imports test data from MusicBrainz database' task :import => :environment do ati = ['Weezer'] ati.each do |name| ImportController.importArtist(name) #ap res = ArtistController.musicBrainzExactSearch(name) end end end