Skip to content

Instantly share code, notes, and snippets.

@garethstokes
Created September 18, 2014 06:30
Show Gist options
  • Save garethstokes/8dbae7808f7db7c5ec13 to your computer and use it in GitHub Desktop.
Save garethstokes/8dbae7808f7db7c5ec13 to your computer and use it in GitHub Desktop.
def import
case @options[:datasource]
when 'hagrid_report'
return Tentacles::Import::Hagrid
when 'file'
return Tentacles::Import::File
when 'mysql'
return Tentacles::Import::MySql
else
puts "Unsupported extractor."
exit
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment