Module: JekyllImport::Importers::DrupalCommon
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #aliases_query(_prefix) ⇒ Object
- #build_query(_prefix, _types, _engine) ⇒ Object
- #post_data(_sql_post_data) ⇒ Object
- #validate(options) ⇒ Object
Instance Method Details
#aliases_query(_prefix) ⇒ Object
168 169 170 171 172 173 174 |
# File 'lib/jekyll-import/importers/drupal_common.rb', line 168 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, _engine) ⇒ Object
164 165 166 |
# File 'lib/jekyll-import/importers/drupal_common.rb', line 164 def build_query(_prefix, _types, _engine) raise "The importer you are trying to use does not implement the get_query() method." end |
#post_data(_sql_post_data) ⇒ Object
176 177 178 |
# File 'lib/jekyll-import/importers/drupal_common.rb', line 176 def post_data(_sql_post_data) raise "The importer you are trying to use does not implement the get_query() method." end |
#validate(options) ⇒ Object
180 181 182 183 184 |
# File 'lib/jekyll-import/importers/drupal_common.rb', line 180 def validate() %w(dbname user).each do |option| abort "Missing mandatory option --#{option}." unless .key?(option) end end |