Sha256: 606e251a8e65e81ee4b15eaa8668c6d5ece706616473fca9bf7c8491a50ed5d4

Contents?: true

Size: 974 Bytes

Versions: 9

Compression:

Stored size: 974 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

9 entries across 9 versions & 1 rubygems

Version Path
rwdschedule-1.01 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-1.00 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-0.98 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-0.93 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-0.94 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-0.95 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-0.96 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-0.97 code/superant.com.schedule/syncrwdschedule.rb
rwdschedule-0.99 code/superant.com.schedule/syncrwdschedule.rb