AppController/djinn.rb
# An Array of DjinnJobData objects, each of which containing information about
# a node in the currently running AppScale deployment.
An Array of DjinnJobData objects, each of which containing information about
a node in the currently running AppScale deployment.
An Array of DjinnJobData objects each of which containing information about a node in the currently running AppScale deployment .
def rsync_files(dest_node)
    appdb = "#{APPSCALE_HOME}/AppDB"
    app_manager = "#{APPSCALE_HOME}/AppManager"
    app_task_queue = "#{APPSCALE_HOME}/AppTaskQueue"
    controller = "#{APPSCALE_HOME}/AppController"
    iaas_manager = "#{APPSCALE_HOME}/InfrastructureManager"
    lib = "#{APPSCALE_HOME}/lib"
    loadbalancer = "#{APPSCALE_HOME}/AppDashboard"
    scripts = "#{APPSCALE_HOME}/scripts"
    server = "#{APPSCALE_HOME}/AppServer"
    server_java = "#{APPSCALE_HOME}/AppServer_Java"
    xmpp_receiver = "#{APPSCALE_HOME}/XMPPReceiver"
    ssh_key = dest_node.ssh_key
    ip = dest_node.private_ip
    options = "-e 'ssh -i #{ssh_key}' -arv --filter '- *.pyc'"
    HelperFunctions.shell("rsync #{options} #{controller}/* root@#{ip}:#{controller}")
    HelperFunctions.shell("rsync #{options} #{server}/* root@#{ip}:#{server}")
    HelperFunctions.shell("rsync #{options} #{server_java}/* root@#{ip}:#{server_java}")
    HelperFunctions.shell("rsync #{options} #{loadbalancer}/* root@#{ip}:#{loadbalancer}")
    HelperFunctions.shell("rsync #{options} --exclude='logs/*' #{appdb}/* root@#{ip}:#{appdb}")
    HelperFunctions.shell("rsync #{options} #{app_manager}/* root@#{ip}:#{app_manager}")
    HelperFunctions.shell("rsync #{options} #{iaas_manager}/* root@#{ip}:#{iaas_manager}")
    HelperFunctions.shell("rsync #{options} #{xmpp_receiver}/* root@#{ip}:#{xmpp_receiver}")
    HelperFunctions.shell("rsync #{options} #{lib}/* root@#{ip}:#{lib}")
    HelperFunctions.shell("rsync #{options} #{app_task_queue}/* root@#{ip}:#{app_task_queue}")
    HelperFunctions.shell("rsync #{options} #{scripts}/* root@#{ip}:#{scripts}")
  end
def rsync_files ( dest_node ) appdb = "#{APPSCALE_HOME}/AppDB" app_manager = "#{APPSCALE_HOME}/AppManager" app_task_queue = "#{APPSCALE_HOME}/AppTaskQueue" controller = "#{APPSCALE_HOME}/AppController" iaas_manager = "#{APPSCALE_HOME}/InfrastructureManager" lib = "#{APPSCALE_HOME}/lib" loadbalancer = "#{APPSCALE_HOME}/AppDashboard" scripts = "#{APPSCALE_HOME}/scripts" server = "#{APPSCALE_HOME}/AppServer" server_java = "#{APPSCALE_HOME}/AppServer_Java" xmpp_receiver = "#{APPSCALE_HOME}/XMPPReceiver" ssh_key = dest_node . ssh_key ip = dest_node . private_ip options = "-e 'ssh -i #{ssh_key}' -arv --filter '- *.pyc'" HelperFunctions . shell ( "rsync #{options} #{controller}/* root@#{ip}:#{controller}" ) HelperFunctions . shell ( "rsync #{options} #{server}/* root@#{ip}:#{server}" ) HelperFunctions . shell ( "rsync #{options} #{server_java}/* root@#{ip}:#{server_java}" ) HelperFunctions . shell ( "rsync #{options} #{loadbalancer}/* root@#{ip}:#{loadbalancer}" ) HelperFunctions . shell ( "rsync #{options} --exclude='logs/*' #{appdb}/* root@#{ip}:#{appdb}" ) HelperFunctions . shell ( "rsync #{options} #{app_manager}/* root@#{ip}:#{app_manager}" ) HelperFunctions . shell ( "rsync #{options} #{iaas_manager}/* root@#{ip}:#{iaas_manager}" ) HelperFunctions . shell ( "rsync #{options} #{xmpp_receiver}/* root@#{ip}:#{xmpp_receiver}" ) HelperFunctions . shell ( "rsync #{options} #{lib}/* root@#{ip}:#{lib}" ) HelperFunctions . shell ( "rsync #{options} #{app_task_queue}/* root@#{ip}:#{app_task_queue}" ) HelperFunctions . shell ( "rsync #{options} #{scripts}/* root@#{ip}:#{scripts}" ) end
An Array of DjinnJobData objects, each of which containing information about
a node in the currently running AppScale deployment.
An Array of DjinnJobData objects each of which containing information about a node in the currently running AppScale deployment .
dest_node
<not_specific>