Module: Oldtime::Rsync_Kernel

Defined in:
lib/oldtime/rsync.rb

Instance Method Summary collapse

Instance Method Details

#rsync(end_cmd, name = nil) ⇒ Object



102
103
104
105
# File 'lib/oldtime/rsync.rb', line 102

def rsync(end_cmd, name=nil)
  name ||= end_cmd
  Rsync.new(end_cmd, name).run
end

#rsync2(filename, name = nil) ⇒ Object

read rsync cmd from file.



108
109
110
111
112
# File 'lib/oldtime/rsync.rb', line 108

def rsync2(filename, name=nil)
  file = Pa("#{Rc.p.home}/#{Rc.profile}/#{filename}")
  name ||= filename
  Rsync2.new(file, name).run
end