drb_fileclient 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/drb_fileclient.rb +10 -5
- metadata +1 -1
- metadata.gz.sig +0 -0
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1899af13205ad2ea11a359b2f073e471838d9dc8a36eb348c248f5d5b377fc39
         | 
| 4 | 
            +
              data.tar.gz: a9b543548e0e1ff671e6b5a80691a53d02da0e0a84495e51a70165bc8b0fc064
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 73727dfaaa2ba5f61b4fa6d82e7480c020288ab4634ae725f84de280e52960bd260777c3a170a01cc9995d5dde36dccb207034af9e6d40b92a3044c6d296ed5a
         | 
| 7 | 
            +
              data.tar.gz: 33005e5f9c0d522c0eb6d8255e0f082d35ddd85fdebb56db7356a15706675333fd2eb3acc77f19461a962280b24a96ca8067dd7326306327831c32a22a717c4a
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/lib/drb_fileclient.rb
    CHANGED
    
    | @@ -49,11 +49,7 @@ class DRbFileClient | |
| 49 49 | 
             
              def cp(raw_path, raw_path2)
         | 
| 50 50 |  | 
| 51 51 | 
             
                puts 'inside cp'.info if @debug
         | 
| 52 | 
            -
             | 
| 53 | 
            -
                unless @directory or raw_path =~ /^dfs:\/\// then
         | 
| 54 | 
            -
                  return FileUtils.cp raw_path, raw_path2 
         | 
| 55 | 
            -
                end
         | 
| 56 | 
            -
                
         | 
| 52 | 
            +
                    
         | 
| 57 53 | 
             
                if raw_path =~ /^dfs:\/\// then
         | 
| 58 54 |  | 
| 59 55 | 
             
                  if @debug then
         | 
| @@ -76,9 +72,18 @@ class DRbFileClient | |
| 76 72 | 
             
                    file2.write path2, content
         | 
| 77 73 |  | 
| 78 74 | 
             
                  end
         | 
| 75 | 
            +
                
         | 
| 76 | 
            +
                elsif raw_path2 =~ /dfs:\/\// then
         | 
| 77 | 
            +
                  
         | 
| 78 | 
            +
                  puts 'option2'.info if @debug
         | 
| 79 | 
            +
                  
         | 
| 80 | 
            +
                  file2, path2 = parse_path(raw_path2)
         | 
| 81 | 
            +
                  puts ('path2: ' + path2.inspect).debug if @debug
         | 
| 82 | 
            +
                  file2.write path2, File.read(raw_path)
         | 
| 79 83 |  | 
| 80 84 | 
             
                else
         | 
| 81 85 |  | 
| 86 | 
            +
                  puts 'option3'.info if @debug
         | 
| 82 87 | 
             
                  @file.cp File.join(@directory, raw_path), 
         | 
| 83 88 | 
             
                      File.join(@directory, raw_path2)
         | 
| 84 89 |  | 
    
        metadata
    CHANGED
    
    
    
        metadata.gz.sig
    CHANGED
    
    | Binary file |