_docker/lib/export/drupal_page_url_list_generator.rb
#
# Writes the list of links to the url-list.txt file
#
Writes the list of links to the url-list.txt file
Writes the list of links to the url - list . txt file
def write_links_to_file(links)
    links_file = "#{@export_directory}/url-list.txt"
    @log.info("Writing '#{links.length}' links to '#{links_file}'")
    FileUtils.rm("#{links_file}", :force => true)
    FileUtils.touch("#{links_file}")
    File.open("#{links_file}", 'w+') do | file |
      file.puts(links)
      @log.info("Successfully wrote '#{links.length}' links to '#{links_file}'")
      file
    end
  end
def write_links_to_file ( links ) links_file = "#{@export_directory}/url-list.txt" @log . info ( "Writing '#{links.length}' links to '#{links_file}'" ) FileUtils . rm ( "#{links_file}" , :force => true ) FileUtils . touch ( "#{links_file}" ) File . open ( "#{links_file}" , 'w+' ) do | file | file . puts ( links ) @log . info ( "Successfully wrote '#{links.length}' links to '#{links_file}'" ) file end end
Writes the list of links to the url-list.txt file
Writes the list of links to the url - list . txt file
links
<not_specific>