class Blitzcrank::Rsync

Public Class Methods

sync(video) click to toggle source
# File lib/blitzcrank/rsync.rb, line 3
def self.sync(video)
  command = "rsync -avz #{ '--bwlimit=' + Blitzcrank.config.bwlimit if Blitzcrank.config.respond_to?(:bwlimit) } --progress --rsh='ssh' \"#{Blitzcrank.config.remote_user}@#{Blitzcrank.config.remote_host}:#{Blitzcrank.config.remote_base_dir}#{video.remote_path.gsub(' ', '\\ ').gsub("'", %q(\\\'))}\" \"#{video.local_path}\""
  system(command)
end