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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db7a8fa46b6665c309367797c511b1adba02d3a479539e8f4c7065aa672ea7d4
4
- data.tar.gz: c24303de8d0ac14cb6c34b8993104e1fc9af7611f5040a714a36ace48cbcda77
3
+ metadata.gz: 6015ca9e079bb61552de1821e805b08f400cbce914475c3d3a73707cdeb3dfb9
4
+ data.tar.gz: d81621a7ec6eb8de445d0d3ed5aae4042f031f73bdadba8b49649842bc8daa61
5
5
  SHA512:
6
- metadata.gz: b09d184f618ada0b1ee3c7ff74ca8936f56bb9c5aa6fcba153ecbe59c221b55289ebe2f163b625c4de31a05e0ddb040afff6bb0cb15031c3d7e2ccb509eebdd1
7
- data.tar.gz: 5276678520f86e74caae027964c7bb110522016d0b0cb2e159d19f2f61a42f82c51d31ec3577833872f09a0597b7cb174ade6d8cd8b61ebf467ae7cbce164b31
6
+ metadata.gz: f2abd1cc408c5c6c8412dadf883f550a976ae508e2745e04c0a12a832173751061b8dfe661d43837d9dd8417d451f4fdc0545d3b896bc5d821b438952062a66d
7
+ data.tar.gz: 36b9c146b4aab5d57b42f9d021a9cdc2dd8d06a7ba5766ffd041f816e5231e323070c112464a1d7d44c53e92ffb467edd1ae3a798504df5c4edabea0bad0a511
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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.3
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-11 00:00:00.000000000 Z
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