drb_fileclient 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e08a226c5a41610e9293150aa3ccc9077db21e19de9444bef56b23e08ca6c90
4
- data.tar.gz: 8cba9bfa3319e7809c26063adb85dc2637d009846e4132bc4bc689bdc4d407b0
3
+ metadata.gz: 1899af13205ad2ea11a359b2f073e471838d9dc8a36eb348c248f5d5b377fc39
4
+ data.tar.gz: a9b543548e0e1ff671e6b5a80691a53d02da0e0a84495e51a70165bc8b0fc064
5
5
  SHA512:
6
- metadata.gz: c7a914a369294bd5ad7c7cc6034a6a2b332fc9abae2801d8359c605d015edead7677b97f4ae7f29667470dc6cc9ec0a44eef99714bcee4dd4c61aa5017177879
7
- data.tar.gz: b1e65e13442dd353acdb30dae87f09fa8fecf71d5b40ad894e19e83c49e79703b1dc63cb748b2b0b6c613756f75a5adfc9c7d1b3f5dc1b50e358f5b0088d1240
6
+ metadata.gz: 73727dfaaa2ba5f61b4fa6d82e7480c020288ab4634ae725f84de280e52960bd260777c3a170a01cc9995d5dde36dccb207034af9e6d40b92a3044c6d296ed5a
7
+ data.tar.gz: 33005e5f9c0d522c0eb6d8255e0f082d35ddd85fdebb56db7356a15706675333fd2eb3acc77f19461a962280b24a96ca8067dd7326306327831c32a22a717c4a
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -49,11 +49,7 @@ class DRbFileClient
49
49
  def cp(raw_path, raw_path2)
50
50
 
51
51
  puts 'inside cp'.info if @debug
52
-
53
- unless @directory or raw_path =~ /^dfs:\/\// then
54
- return FileUtils.cp raw_path, raw_path2
55
- end
56
-
52
+
57
53
  if raw_path =~ /^dfs:\/\// then
58
54
 
59
55
  if @debug then
@@ -76,9 +72,18 @@ class DRbFileClient
76
72
  file2.write path2, content
77
73
 
78
74
  end
75
+
76
+ elsif raw_path2 =~ /dfs:\/\// then
77
+
78
+ puts 'option2'.info if @debug
79
+
80
+ file2, path2 = parse_path(raw_path2)
81
+ puts ('path2: ' + path2.inspect).debug if @debug
82
+ file2.write path2, File.read(raw_path)
79
83
 
80
84
  else
81
85
 
86
+ puts 'option3'.info if @debug
82
87
  @file.cp File.join(@directory, raw_path),
83
88
  File.join(@directory, raw_path2)
84
89
 
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file