AppController/djinn.rb
# Cleans out temporary files that may have been written by a previous
# AppScale deployment.
Cleans out temporary files that may have been written by a previous
AppScale deployment.
Cleans out temporary files that may have been written by a previous AppScale deployment .
def erase_old_data()
    Djinn.log_run("rm -rf #{Dir.tmpdir}/h*")
    Djinn.log_run("rm -f ~/.appscale_cookies")
    Nginx.clear_sites_enabled()
    HAProxy.clear_sites_enabled()
    Djinn.log_run("echo '' > /root/.ssh/known_hosts") 
    CronHelper.clear_app_crontabs()
  end
def erase_old_data ( ) Djinn . log_run ( "rm -rf #{Dir.tmpdir}/h*" ) Djinn . log_run ( "rm -f ~/.appscale_cookies" ) Nginx . clear_sites_enabled ( ) HAProxy . clear_sites_enabled ( ) Djinn . log_run ( "echo '' > /root/.ssh/known_hosts" ) CronHelper . clear_app_crontabs ( ) end
Cleans out temporary files that may have been written by a previous
AppScale deployment.
Cleans out temporary files that may have been written by a previous AppScale deployment .
# empty it out but leave the file there