lib/tasks/sync.rake
def should_copy?(source, target)
    return true
    return true if !File.exists?(target)

    source_sha = Digest::SHA1.hexdigest(File.read(source))
    target_sha = Digest::SHA1.hexdigest(File.read(target))
    
    debugger if source_sha != target_sha
    
    return true if source_sha == target_sha
    
    return false
  end
#
# Make the decision whether or not to copy the sync'd file
#
Make the decision whether or not to copy the sync'd file
Make the decision whether or not to copy the sync ' d file
def should_copy?(source, target)
    return true
    return true if !File.exists?(target)
    source_sha = Digest::SHA1.hexdigest(File.read(source))
    target_sha = Digest::SHA1.hexdigest(File.read(target))
    debugger if source_sha != target_sha
    return true if source_sha == target_sha
    return false
  end
def should_copy? ( source , target ) return true return true if ! File . exists? ( target ) source_sha = Digest :: SHA1 . hexdigest ( File . read ( source ) ) target_sha = Digest :: SHA1 . hexdigest ( File . read ( target ) ) debugger if source_sha != target_sha return true if source_sha == target_sha return false end
Make the decision whether or not to copy the sync'd file
Make the decision whether or not to copy the sync ' d file
source
target