_docker/lib/export/httrack_export_strategy.rb
#
# Checks the number of updates that have been performed to the httrack export cache, and
# if we have exceeded the maximum permissable number of updates, rolls the export over.
#
Checks the number of updates that have been performed to the httrack export cache, and
if we have exceeded the maximum permissable number of updates, rolls the export over.
Checks the number of updates that have been performed to the httrack export cache and if we have exceeded the maximum permissable number of updates rolls the export over .
def check_and_roll_over_cache(export_directory, drupal_host)
    current_cache_updates = current_httrack_cache_updates(export_directory)
    max_cache_updates = max_httrack_cache_updates
    @log.info("Export cache has been updated '#{current_cache_updates}' times out of a permitted '#{max_cache_updates}' updates.")
    unless current_cache_updates < max_cache_updates
      roll_over_export_cache(export_directory, drupal_host)
      current_cache_updates = 0
    end
    current_cache_updates + 1
  end
def check_and_roll_over_cache ( export_directory , drupal_host ) current_cache_updates = current_httrack_cache_updates ( export_directory ) max_cache_updates = max_httrack_cache_updates @log . info ( "Export cache has been updated '#{current_cache_updates}' times out of a permitted '#{max_cache_updates}' updates." ) unless current_cache_updates < max_cache_updates roll_over_export_cache ( export_directory , drupal_host ) current_cache_updates = 0 end current_cache_updates + 1 end
Checks the number of updates that have been performed to the httrack export cache, and
if we have exceeded the maximum permissable number of updates, rolls the export over.
Checks the number of updates that have been performed to the httrack export cache and if we have exceeded the maximum permissable number of updates rolls the export over .
export_directory
<not_specific>
drupal_host
<not_specific>