Class: BentoSearch::PullEbscoDbsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/bento_search/pull_ebsco_dbs_generator.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



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", options.output_file)
  
end