Class: BentoSearch::PullEbscoDbsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- BentoSearch::PullEbscoDbsGenerator
- Defined in:
- lib/generators/bento_search/pull_ebsco_dbs_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/generators/bento_search/pull_ebsco_dbs_generator.rb', line 13 def generate engine = BentoSearch.get_engine( engine_id ) @dbs = engine.get_info.xpath("./info/dbInfo/db") #.sort_by {|n| n["shortName"]} template("ebsco_global_var.erb", .output_file) end |