Cross server files/direcories transfer with net/scp in ruby on rails

Some times while dealing with load balanced server we require to manage assets across servers, need to transfer data between load balanced
servers, workout with some gems and plugins finally found solution.

Following code snipts gives you brief on process.

require 'net/scp'
Net::SCP.start(@host, @host_user, :password => @password) do |scp|
scp.upload! source, dest, :recursive => true

stay connected ! RoR rules ……