drb_fileclient 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/drb_fileclient.rb +29 -12
- metadata +27 -23
- 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: 4dd24921abefc7ad1f0f6f252f33bf8a342a718d00fb8850a8068869007c7a5c
|
4
|
+
data.tar.gz: 6ed79b375fa269fc33b28a26ffeafe1223b9f0c18aeac071397116c7d3f1fb81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 975d6904d5dad3172dd48c9a752da8b24bba28fa4b49db0c536e10beb15d5ae62f72e55da26441f4e9fe70adc3540b79fb4f3d7706f3742c3bf3c6ac37ac4ba9
|
7
|
+
data.tar.gz: e6e20757af201845c09d60d94cb07487f621045fa376b55683b673e879414c1b6acd48b2d6bd6f35fa5fab7080308d97e41f60a76d56e450660280b9596083ee
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
@@ -8,6 +8,7 @@ require 'zip'
|
|
8
8
|
|
9
9
|
class DRbFileClient
|
10
10
|
|
11
|
+
|
11
12
|
def initialize(location=nil, host: nil, port: '61010')
|
12
13
|
|
13
14
|
if location then
|
@@ -75,6 +76,21 @@ class DRbFileClient
|
|
75
76
|
|
76
77
|
end
|
77
78
|
|
79
|
+
def directory?(filename=@filename)
|
80
|
+
|
81
|
+
return File.directory? filename unless @directory or filename =~ /^dfs:\/\//
|
82
|
+
|
83
|
+
if filename =~ /^dfs:\/\// then
|
84
|
+
@file, filename2 = parse_path(filename)
|
85
|
+
else
|
86
|
+
|
87
|
+
filename2 = File.join(@directory, filename)
|
88
|
+
end
|
89
|
+
|
90
|
+
@file.directory?(filename2)
|
91
|
+
|
92
|
+
end
|
93
|
+
|
78
94
|
def exists?(filename=@filename)
|
79
95
|
|
80
96
|
return File.exists? filename unless @directory or filename =~ /^dfs:\/\//
|
@@ -247,17 +263,18 @@ class DfsFile
|
|
247
263
|
|
248
264
|
@client = DRbFileClient.new
|
249
265
|
|
250
|
-
def self.
|
251
|
-
def self.
|
252
|
-
def self.
|
253
|
-
def self.
|
254
|
-
def self.
|
255
|
-
def self.
|
256
|
-
def self.
|
257
|
-
def self.
|
258
|
-
def self.
|
259
|
-
def self.
|
260
|
-
def self.
|
261
|
-
def self.
|
266
|
+
def self.directory?(filename) @client.directory?(filename) end
|
267
|
+
def self.exists?(filename) @client.exists?(filename) end
|
268
|
+
def self.chdir(path) @client.chdir(path) end
|
269
|
+
def self.cp(path, path2) @client.cp(path, path2) end
|
270
|
+
def self.ls(path) @client.ls(path) end
|
271
|
+
def self.mkdir(name) @client.mkdir(name) end
|
272
|
+
def self.mkdir_p(path) @client.mkdir_p(path) end
|
273
|
+
def self.mv(path, path2) @client.mv(path, path2) end
|
274
|
+
def self.pwd() @client.pwd() end
|
275
|
+
def self.read(filename) @client.read(filename) end
|
276
|
+
def self.rm(filename) @client.rm(filename) end
|
277
|
+
def self.write(filename, s) @client.write(filename, s) end
|
278
|
+
def self.zip(filename, a) @client.zip(filename, a) end
|
262
279
|
|
263
280
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drb_fileclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,27 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|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|
26
|
+
H1TSltk+4vyAjijZuQ0wJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
|
27
|
+
c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
|
28
|
+
BgkqhkiG9w0BAQsFAAOCAYEAehovpYSCjyALI2nsoZgOXuhu2FLJqUQBuoJ71qhb
|
29
|
+
Taqk2GGL7H3rw+230F7JFa6+mEDhvPRtPpvFouUWCVkWt/cFjCSi6wMtPtWI1npX
|
30
|
+
Z24Rq7o4qhnGnNOgF4GUIAB9wKkuGpHpGu3Pm6sSsoY53RSdOIrUbATq7d9R+nDC
|
31
|
+
IuHsUhqWu0JHuIcJAt2nFdNhpAM1xI8xmpBB/ZAPmuBgCIGACRUj9zDwCcvQTexg
|
32
|
+
VpPvUCkhqF2HslhSBvMt0uWior6rx2NF1XjLcaNZ3D/RYODI+c8bzGuG/kiy49T1
|
33
|
+
GiV9YurS5UW2Pbpy6GnkvDWNOGwV3SuIeVzo0kcGh/O4zRzC0UHWXzfMshQZq+vj
|
34
|
+
jYmP2hJqU6kqXV8nvKfwDTVov3W49/Nx2NgvhKFga4gMlwRryZCYpWSNJ/2PnKke
|
35
|
+
Q2NfvYKLI+E2SiA6gvWccHs5PVlVg/BMshm3jnuqHGeuzxtSivRoTcRKfedcs6CL
|
36
|
+
NlXQCltmwWchk+xRD5gmICCy
|
32
37
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
38
|
+
date: 2019-02-18 00:00:00.000000000 Z
|
34
39
|
dependencies:
|
35
40
|
- !ruby/object:Gem::Dependency
|
36
41
|
name: zip
|
@@ -78,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
83
|
- !ruby/object:Gem::Version
|
79
84
|
version: '0'
|
80
85
|
requirements: []
|
81
|
-
|
82
|
-
rubygems_version: 2.7.6
|
86
|
+
rubygems_version: 3.0.1
|
83
87
|
signing_key:
|
84
88
|
specification_version: 4
|
85
89
|
summary: Reads or writes files from a remote DRb server. Simple as DfsFile.read or
|
metadata.gz.sig
CHANGED
Binary file
|