drb_fileserver 0.1.3 → 0.1.4
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/lib/drb_fileserver.rb +19 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: 6015ca9e079bb61552de1821e805b08f400cbce914475c3d3a73707cdeb3dfb9
         | 
| 4 | 
            +
              data.tar.gz: d81621a7ec6eb8de445d0d3ed5aae4042f031f73bdadba8b49649842bc8daa61
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: f2abd1cc408c5c6c8412dadf883f550a976ae508e2745e04c0a12a832173751061b8dfe661d43837d9dd8417d451f4fdc0545d3b896bc5d821b438952062a66d
         | 
| 7 | 
            +
              data.tar.gz: 36b9c146b4aab5d57b42f9d021a9cdc2dd8d06a7ba5766ffd041f816e5231e323070c112464a1d7d44c53e92ffb467edd1ae3a798504df5c4edabea0bad0a511
         | 
    
        checksums.yaml.gz.sig
    CHANGED
    
    | Binary file | 
    
        data/lib/drb_fileserver.rb
    CHANGED
    
    | @@ -16,6 +16,11 @@ class DRbFileServer | |
| 16 16 |  | 
| 17 17 | 
             
                end
         | 
| 18 18 |  | 
| 19 | 
            +
                def cp(path, path2)
         | 
| 20 | 
            +
                  puts 'cp: ' + [File.join(@path, path), File.join(@path, path2)].inspect
         | 
| 21 | 
            +
                  FileUtils.cp File.join(@path, path), File.join(@path, path2)
         | 
| 22 | 
            +
                end        
         | 
| 23 | 
            +
                
         | 
| 19 24 | 
             
                def exists?(filename)
         | 
| 20 25 | 
             
                  File.exists? File.join(@path, filename)
         | 
| 21 26 | 
             
                end
         | 
| @@ -28,9 +33,23 @@ class DRbFileServer | |
| 28 33 | 
             
                  FileUtils.mkdir_p File.join(@path, path)
         | 
| 29 34 | 
             
                end
         | 
| 30 35 |  | 
| 36 | 
            +
                def mv(path, path2)
         | 
| 37 | 
            +
                  FileUtils.mv File.join(@path, path), File.join(@path, path2)
         | 
| 38 | 
            +
                end    
         | 
| 39 | 
            +
                
         | 
| 31 40 | 
             
                def read(filename)
         | 
| 32 41 | 
             
                  File.read File.join(@path, filename)
         | 
| 33 42 | 
             
                end
         | 
| 43 | 
            +
                
         | 
| 44 | 
            +
                def rm(filename)
         | 
| 45 | 
            +
                  FileUtils.rm File.join(@path, filename)
         | 
| 46 | 
            +
                end     
         | 
| 47 | 
            +
                
         | 
| 48 | 
            +
                def stop()
         | 
| 49 | 
            +
                  puts 'stopping DFS service ...'
         | 
| 50 | 
            +
                  DRb.stop_service
         | 
| 51 | 
            +
                  'connection closed'
         | 
| 52 | 
            +
                end
         | 
| 34 53 |  | 
| 35 54 | 
             
                def write(filename, s)
         | 
| 36 55 | 
             
                  File.write File.join(@path, filename), s
         | 
    
        data.tar.gz.sig
    CHANGED
    
    | Binary file | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: drb_fileserver
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.4
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - James Robertson
         | 
| @@ -30,7 +30,7 @@ cert_chain: | |
| 30 30 | 
             
              oh8JRUlp0l/bIhdntCE1FsAL2D5P1qTBRaWjQxRcccUAO/ZWq2oDICPz0eBNQdKJ
         | 
| 31 31 | 
             
              Fqo=
         | 
| 32 32 | 
             
              -----END CERTIFICATE-----
         | 
| 33 | 
            -
            date: 2018-08- | 
| 33 | 
            +
            date: 2018-08-12 00:00:00.000000000 Z
         | 
| 34 34 | 
             
            dependencies: []
         | 
| 35 35 | 
             
            description: 
         | 
| 36 36 | 
             
            email: james@jamesrobertson.eu
         | 
    
        metadata.gz.sig
    CHANGED
    
    | Binary file |