lib/grape.rb
# syncronize a local folder to REMOTE_DIR using RSYNC
syncronize a local folder to REMOTE_DIR using RSYNC
syncronize a local folder to REMOTE_DIR using RSYNC
def sync_folder!(f)
    remote_sh "mkdir -p #{REMOTE_DIR}"
    cmd = "rsync -auvz -e \"ssh -C -i #{KEY} \" #{f} #{@client}:#{REMOTE_DIR}"
    `#{cmd}`
    puts cmd
    fail "#{@client} can't RSYNC! #{f}" unless $?.exitstatus == 0
  end
def sync_folder! ( f ) remote_sh "mkdir -p #{REMOTE_DIR}" cmd = "rsync -auvz -e \"ssh -C -i #{KEY} \" #{f} #{@client}:#{REMOTE_DIR}" ` #{ cmd } ` puts cmd fail "#{@client} can't RSYNC! #{f}" unless $? . exitstatus == 0 end
syncronize a local folder to REMOTE_DIR using RSYNC
syncronize a local folder to REMOTE_DIR using RSYNC
f