drb_fileclient 0.6.2 → 0.7.2
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_fileclient.rb +56 -0
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1ee3feb5166347679ba7107067598c719cf15663fa6a872c07fe6a53742bb727
|
|
4
|
+
data.tar.gz: 9ccfc67edaa513985ce97b6f81e94733bb4f7b637403b1c713cc273255c973f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3584d15b675099e548d8c1943523db7705afcd0aaf4261dd6af957c98fe0bff876eaa26ed99a41bb62749c05200da07e34d7a5ecd3db1e5f0950b81f9d263894
|
|
7
|
+
data.tar.gz: 902a9ac523608de39170beab7004f1335e5100dabac8e7cb9f46bac0bee5682647a78988ea4ed2719e273bf908c85f92adb563cb5ed6993cd89254f6102f4dd0
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
require 'drb'
|
|
6
6
|
require 'zip'
|
|
7
7
|
require 'c32'
|
|
8
|
+
# Commented out to avoid bug with RXFHelper constants
|
|
9
|
+
#require 'dir-to-xml'
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
class DRbFileClient
|
|
@@ -253,6 +255,53 @@ class DRbFileClient
|
|
|
253
255
|
|
|
254
256
|
end
|
|
255
257
|
|
|
258
|
+
def rm_r(path, force: false)
|
|
259
|
+
|
|
260
|
+
unless @directory or path =~ /^dfs:\/\// then
|
|
261
|
+
return FileUtils.rm_r(path, force: force)
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
if path =~ /^dfs:\/\// then
|
|
265
|
+
@file, path2 = parse_path( path)
|
|
266
|
+
else
|
|
267
|
+
path2 = File.join(@directory, path)
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
@file.rm_r(path2, force: force)
|
|
271
|
+
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
def ru(path)
|
|
275
|
+
|
|
276
|
+
return DirToXML.new(path, verbose: false).latest unless @directory \
|
|
277
|
+
or path =~ /^dfs:\/\//
|
|
278
|
+
|
|
279
|
+
if path =~ /^dfs:\/\// then
|
|
280
|
+
@file, path2 = parse_path( path)
|
|
281
|
+
else
|
|
282
|
+
path2 = File.join(@directory, path)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
@file.ru path2
|
|
286
|
+
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
def ru_r(path)
|
|
290
|
+
|
|
291
|
+
unless @directory or path =~ /^dfs:\/\// then
|
|
292
|
+
return DirToXML.new(path, recursive: true, verbose: false).latest
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
if path =~ /^dfs:\/\// then
|
|
296
|
+
@file, path2 = parse_path( path)
|
|
297
|
+
else
|
|
298
|
+
path2 = File.join(@directory, path)
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
@file.ru_r path2
|
|
302
|
+
|
|
303
|
+
end
|
|
304
|
+
|
|
256
305
|
def touch(s, mtime: Time.now)
|
|
257
306
|
|
|
258
307
|
unless @directory or s =~ /^dfs:\/\// then
|
|
@@ -343,6 +392,13 @@ class DfsFile
|
|
|
343
392
|
def self.read(filename) @client.read(filename) end
|
|
344
393
|
def self.rm(filename) @client.rm(filename) end
|
|
345
394
|
|
|
395
|
+
def self.rm_r(filename, force: false)
|
|
396
|
+
@client.rm_r(filename, force: force)
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
def self.ru(path) @client.ru(path) end
|
|
400
|
+
def self.ru_r(path) @client.ru_r(path) end
|
|
401
|
+
|
|
346
402
|
def self.touch(filename, mtime: Time.now)
|
|
347
403
|
@client.touch(filename, mtime: mtime)
|
|
348
404
|
end
|
data.tar.gz.sig
CHANGED
|
Binary file
|
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
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
|
35
35
|
FGcgjmmz5fOIqq2sBxk6JW1yo2G43yIUzymWOYKT2Jh6RR0Gg3z66wWwYpFpx8yR
|
|
36
36
|
00JTBNVAgW+s2sLpeBtyMDbb
|
|
37
37
|
-----END CERTIFICATE-----
|
|
38
|
-
date: 2022-02-
|
|
38
|
+
date: 2022-02-11 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: zip
|
metadata.gz.sig
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
�
|
|
1
|
+
l.1�l>s�홖|2�N�_W��Aj��6��3jM"�U��R*9�sòL
|
|
2
|
+
2�ۿ��sTw�1?�\�`���()�f�̏��I��@ Ci��'�kȽ�Ŕ�BQ�Y��Ǣ�=�����(_�#�7M�6��C��O�]0�=�i@X�������T돶R�`�N9C�X��q��E��������v�4��o��(�a�T��N�WQT����s3���._Ur��ZL`�z�&�f�i8{W�{���*�R���l��i��
|
|
3
|
+
#[�!(KU!�{n���o[I�o�[-r6D��w��.b���eߌ{|��;czc�i��q\/-5�i��V����BK.�9����?JA��tZk�o{��ˠD������w��
|