drb_fileclient 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b5994581100964c71d00b40a5665a36f8ef144ab
4
+ data.tar.gz: 45b00643770c8cfb4e8b33346637663ae625be51
5
+ SHA512:
6
+ metadata.gz: 137f8380cf9df0eb787e3a7f8316270838d3fda77868d661e77511c1caa6ca3c71a43b3729989031efa0420be8a6698547611d841fda35e6f4d30b09f848c721
7
+ data.tar.gz: 92e6a7dfa16d3034fcc897c165f490af7790416e08746caef00ff7fc394714708d2ae739893619e04139aa46b8b0bb782620290f0ef18779f9cb054bcb576aeb
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # file: drb_fileclient.rb
4
+
5
+ require 'drb'
6
+
7
+
8
+ class DRbFileClient
9
+
10
+ def initialize(host: 'localhost', port: '61010')
11
+ DRb.start_service
12
+
13
+ # attach to the DRb server via a URI given on the command line
14
+ @file = DRbObject.new nil, "druby://#{host}:#{port}"
15
+
16
+ end
17
+
18
+ def read(filename)
19
+
20
+ @file.read filename
21
+
22
+ end
23
+
24
+ def write(filename, s)
25
+
26
+ @file.write filename, s
27
+
28
+ end
29
+
30
+ end
31
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: drb_fileclient
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - James Robertson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
14
+ YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwMTIyMjIwODIzWhcN
15
+ MTkwMTIyMjIwODIzWjA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79CQVmpJ5LCTjwTg9h+
31
+ g1Q=
32
+ -----END CERTIFICATE-----
33
+ date: 2018-01-22 00:00:00.000000000 Z
34
+ dependencies: []
35
+ description:
36
+ email: james@jamesrobertson.eu
37
+ executables: []
38
+ extensions: []
39
+ extra_rdoc_files: []
40
+ files:
41
+ - lib/drb_fileclient.rb
42
+ homepage: https://github.com/jrobertson/drb_fileclient
43
+ licenses:
44
+ - MIT
45
+ metadata: {}
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.6.13
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Reads or writes files from a remote DRb server.
66
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1 @@
1
+ I���W~��!�8`��}/Z�;���#�J(�FL<�4���� ������/���c�jc �����-�ۿ�"��A