Sha256: c3d26b935c985b150773ece12d4bada2b1abc02857c86388b5e883dfe5fb235d
Contents?: true
Size: 944 Bytes
Versions: 3
Compression:
Stored size: 944 Bytes
Contents
def syncrwdscheduledata require 'fileutils' @rwdschedulesyncresult = "" begin @rwdschedulesyncresult = "updating local files" + "\n" Dir.chdir($progdir) localfileListarray = Dir.new($rwdschedule_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) } remotefileListarray = Dir.new($rwdschedule_updatedirectory ).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /sch$/) } tempupdatefilelistarray = remotefileListarray - localfileListarray if tempupdatefilelistarray tempupdatefilelistarray.each do |temp| tmpfilenametosync = File.join($rwdschedule_updatedirectory,temp) tmpfilenamecopied = File.join($rwdschedule_directory,temp) FileUtils.cp( tmpfilenametosync, tmpfilenamecopied) @rwdschedulesyncresult = @rwdschedulesyncresult + temp + "\n" end end rescue print "sync error" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rwdschedule-0.9 | code/gg0schedules/syncrwdschedule.rb |
rwdschedule-0.91 | code/superantc.com.schedule/syncrwdschedule.rb |
rwdschedule-0.92 | code/superant.com.schedule/syncrwdschedule.rb |