drb_fileclient 0.4.6 → 0.5.0
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 +13 -3
- metadata +22 -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: 0e08a226c5a41610e9293150aa3ccc9077db21e19de9444bef56b23e08ca6c90
|
4
|
+
data.tar.gz: 8cba9bfa3319e7809c26063adb85dc2637d009846e4132bc4bc689bdc4d407b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7a914a369294bd5ad7c7cc6034a6a2b332fc9abae2801d8359c605d015edead7677b97f4ae7f29667470dc6cc9ec0a44eef99714bcee4dd4c61aa5017177879
|
7
|
+
data.tar.gz: b1e65e13442dd353acdb30dae87f09fa8fecf71d5b40ad894e19e83c49e79703b1dc63cb748b2b0b6c613756f75a5adfc9c7d1b3f5dc1b50e358f5b0088d1240
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/drb_fileclient.rb
CHANGED
@@ -4,12 +4,15 @@
|
|
4
4
|
|
5
5
|
require 'drb'
|
6
6
|
require 'zip'
|
7
|
+
require 'c32'
|
7
8
|
|
8
9
|
|
9
10
|
class DRbFileClient
|
11
|
+
using ColouredText
|
10
12
|
|
11
|
-
|
12
|
-
|
13
|
+
def initialize(location=nil, host: nil, port: '61010', debug: false)
|
14
|
+
|
15
|
+
@debug = debug
|
13
16
|
|
14
17
|
if location then
|
15
18
|
|
@@ -45,17 +48,24 @@ class DRbFileClient
|
|
45
48
|
|
46
49
|
def cp(raw_path, raw_path2)
|
47
50
|
|
51
|
+
puts 'inside cp'.info if @debug
|
52
|
+
|
48
53
|
unless @directory or raw_path =~ /^dfs:\/\// then
|
49
54
|
return FileUtils.cp raw_path, raw_path2
|
50
55
|
end
|
51
56
|
|
52
57
|
if raw_path =~ /^dfs:\/\// then
|
53
58
|
|
59
|
+
if @debug then
|
60
|
+
puts ('raw_path: ' + raw_path.inspect).debug
|
61
|
+
puts ('raw_path2: ' + raw_path2.inspect).debug
|
62
|
+
end
|
63
|
+
|
54
64
|
if raw_path[/^dfs:\/\/([^\/]+)/] == raw_path2[/^dfs:\/\/([^\/]+)/] then
|
55
65
|
|
56
66
|
_, path = parse_path(raw_path)
|
57
67
|
@file, path2 = parse_path(raw_path2)
|
58
|
-
@file.cp path,
|
68
|
+
@file.cp path, path2
|
59
69
|
|
60
70
|
else
|
61
71
|
|
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.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
Q2NfvYKLI+E2SiA6gvWccHs5PVlVg/BMshm3jnuqHGeuzxtSivRoTcRKfedcs6CL
|
36
36
|
NlXQCltmwWchk+xRD5gmICCy
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-04-28 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: zip
|
@@ -57,6 +57,26 @@ dependencies:
|
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: 2.0.2
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: c32
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0.1'
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.1.2
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0.1'
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: 0.1.2
|
60
80
|
description:
|
61
81
|
email: james@jamesrobertson.eu
|
62
82
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|