lib/term_bootstrapper.rb
# NOTE: This must be updated if you intend to pick up new fields from EolTerms
This must be updated if you intend to pick up new fields from EolTerms
This must be updated if you intend to pick up new fields from EolTerms
def create_yaml
    File.open(@filename, 'w') do |file|
      file.write "# This file was automatically generated from the eol_website codebase using TermBootstrapper.\n"
      file.write "# COMPILED: #{Time.now.strftime('%F %T')}\n"
      file.write "# You MAY edit this file as you see fit. You may remove this message if you care to.\n\n"
      file.write({ 'terms' => terms_from_neo4j }.to_yaml)
    end
  end
def create_yaml File . open ( @filename , 'w' ) do | file | file . write "# This file was automatically generated from the eol_website codebase using TermBootstrapper.\n" file . write "# COMPILED: #{Time.now.strftime('%F %T')}\n" file . write "# You MAY edit this file as you see fit. You may remove this message if you care to.\n\n" file . write ( { 'terms' => terms_from_neo4j } . to_yaml ) end end
NOTE: This must be updated if you intend to pick up new fields from EolTerms
NOTE : This must be updated if you intend to pick up new fields from EolTerms