drb_fileclient-readwrite 0.1.1 → 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_fileclient-readwrite.rb +39 -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: 2aa95efb66b79c7c03e7d300fb89ef8847f6faf08635780d5eaa7492eed9b89a
|
4
|
+
data.tar.gz: c6b05ab0657e3479a42b4fac490ccfd0de858a46aba1beecd0fd05a8e495f5e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f835196a52e120fed9f724df14df839a7182434b4ffb27b58b18e8d1f19deb1e884c8ef7b4012c38349f09566789fad12a0153bdbcc30c13ae5ffcbfb79447
|
7
|
+
data.tar.gz: 376b3abb7b233700fec31e7cf0f64aaab7f89f60acd2dc271fd5b8e5d4c427ea51b90258f711edb89eaa81ba11c7e31a75bca7468f0fd971185e17f679468e09
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -28,6 +28,21 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
28
28
|
|
29
29
|
end
|
30
30
|
|
31
|
+
def directory?(filename=@filename)
|
32
|
+
|
33
|
+
return File.directory? filename unless @directory or filename =~ /^dfs:\/\//
|
34
|
+
|
35
|
+
if filename =~ /^dfs:\/\// then
|
36
|
+
@file, filename2 = parse_path(filename)
|
37
|
+
else
|
38
|
+
|
39
|
+
filename2 = File.join(@directory, filename)
|
40
|
+
end
|
41
|
+
|
42
|
+
@file.directory?(filename2)
|
43
|
+
|
44
|
+
end
|
45
|
+
|
31
46
|
def glob(s)
|
32
47
|
|
33
48
|
if s =~ /^dfs:\/\// then
|
@@ -63,6 +78,14 @@ class DRbFileClientReadWrite < DRbFileClientReader
|
|
63
78
|
@file.mkdir_p filepath
|
64
79
|
end
|
65
80
|
|
81
|
+
def pwd()
|
82
|
+
|
83
|
+
return Dir.pwd unless @directory
|
84
|
+
|
85
|
+
'/' + @directory if @file
|
86
|
+
|
87
|
+
end
|
88
|
+
|
66
89
|
def rm(path)
|
67
90
|
|
68
91
|
return FileUtils.rm path unless @directory or path =~ /^dfs:\/\//
|
@@ -129,10 +152,26 @@ def DfsFile.chdir(path)
|
|
129
152
|
DRbFileClientReadWrite.new.chdir(path)
|
130
153
|
end
|
131
154
|
|
155
|
+
def DfsFile.directory?(filename)
|
156
|
+
DRbFileClient.new.directory?(filename)
|
157
|
+
end
|
158
|
+
|
132
159
|
def DfsFile.glob(s)
|
133
160
|
DRbFileClientReadWrite.new.glob(s)
|
134
161
|
end
|
135
162
|
|
163
|
+
def DfsFile.mkdir(filename)
|
164
|
+
DRbFileClientReadWrite.new.mkdir(filename)
|
165
|
+
end
|
166
|
+
|
167
|
+
def DfsFile.mkdir_p(filename)
|
168
|
+
DRbFileClientReadWrite.new.mkdir_p(filename)
|
169
|
+
end
|
170
|
+
|
171
|
+
def DfsFile.pwd()
|
172
|
+
DRbFileClient.new.pwd()
|
173
|
+
end
|
174
|
+
|
136
175
|
def DfsFile.rm(filename)
|
137
176
|
DRbFileClientReadWrite.new.rm(filename)
|
138
177
|
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-readwrite
|
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
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ILzVBTpjvSiaWCjFvxvVJFct97WGSbaR2jPvZ03xyAONtWdKkv2yceiyfAMaldSQ
|
36
36
|
eftJvciSPh0DHzyI46OGIkLX
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2022-02-
|
38
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: drb_fileclient-reader
|
metadata.gz.sig
CHANGED
Binary file
|