module BuntoImport::Importers::DrupalCommon
Public Instance Methods
aliases_query(prefix)
click to toggle source
# File lib/bunto-import/importers/drupal_common.rb, line 134 def aliases_query(prefix) # Make sure you implement the query returning "alias" as the column name # for the URL aliases. See the Drupal 6 importer for an example. The # alias field is called 'dst' but we alias it to 'alias', to follow # Drupal 7's column names. raise 'The importer you are trying to use does not implement the get_aliases_query() method.' end
build_query(prefix, types)
click to toggle source
# File lib/bunto-import/importers/drupal_common.rb, line 130 def build_query(prefix, types) raise 'The importer you are trying to use does not implement the get_query() method.' end
post_data(sql_post_data)
click to toggle source
# File lib/bunto-import/importers/drupal_common.rb, line 142 def post_data(sql_post_data) raise 'The importer you are trying to use does not implement the get_query() method.' end
validate(options)
click to toggle source
# File lib/bunto-import/importers/drupal_common.rb, line 146 def validate(options) %w[dbname user].each do |option| if options[option].nil? abort "Missing mandatory option --#{option}." end end end