drb_fileclient 0.1.0 → 0.1.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
  SHA1:
3
- metadata.gz: b5994581100964c71d00b40a5665a36f8ef144ab
4
- data.tar.gz: 45b00643770c8cfb4e8b33346637663ae625be51
3
+ metadata.gz: '069e451b1e7939b6dbb5c23bc67a9537b1aa83d5'
4
+ data.tar.gz: 872db0d50b802c0b70cda63db6fb19fe0e5b58b6
5
5
  SHA512:
6
- metadata.gz: 137f8380cf9df0eb787e3a7f8316270838d3fda77868d661e77511c1caa6ca3c71a43b3729989031efa0420be8a6698547611d841fda35e6f4d30b09f848c721
7
- data.tar.gz: 92e6a7dfa16d3034fcc897c165f490af7790416e08746caef00ff7fc394714708d2ae739893619e04139aa46b8b0bb782620290f0ef18779f9cb054bcb576aeb
6
+ metadata.gz: 483d6cf8d7b7d7a68806f7cd2eae04a454c16e6e04e8ec332c18e996740094bda7d38865c9f1e810aa6f69c96562f089260e7b00a3c50a72a839a9ca41cd9713
7
+ data.tar.gz: '0928ec6d8e035f3110c780c33f653d2b1e9d78d9ef5104832cabd7f5380e1fefafacea807921e593905686f51dbb65b0ce87a6e37461e12124fceb6c3430cffe'
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -8,12 +8,19 @@ require 'drb'
8
8
  class DRbFileClient
9
9
 
10
10
  def initialize(host: 'localhost', port: '61010')
11
+
11
12
  DRb.start_service
12
13
 
13
14
  # attach to the DRb server via a URI given on the command line
14
15
  @file = DRbObject.new nil, "druby://#{host}:#{port}"
15
16
 
16
17
  end
18
+
19
+ def exists?(filename)
20
+
21
+ @file.exists? filename
22
+
23
+ end
17
24
 
18
25
  def read(filename)
19
26
 
@@ -28,4 +35,3 @@ class DRbFileClient
28
35
  end
29
36
 
30
37
  end
31
-
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  2aIZ9lf6/AT4LP07t9jB5oYLHlr2nBLIqtPXdJvg5RKKr79CQVmpJ5LCTjwTg9h+
31
31
  g1Q=
32
32
  -----END CERTIFICATE-----
33
- date: 2018-01-22 00:00:00.000000000 Z
33
+ date: 2018-02-24 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email: james@jamesrobertson.eu
metadata.gz.sig CHANGED
Binary file