Sha256: 65da9f2b92d7c88acf5ae7c5a8df5099c741fd16024e43bb300f264b463a5c5f

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

#
# Dictionary client
#
# See dictionary_server.rb for details
#

require 'drb'

DRb.start_service
dictionary = DRbObject.new(nil, "druby://localhost:1234")

if ARGV.length == 1
  puts dictionary.lookup(ARGV[0])
elsif ARGV.length == 2
  dictionary.add(ARGV[0], ARGV[1])
  puts "Stored"
else
  puts "Usage: dictionary_client <key> [<value>]"
end


  

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
madeleine-0.9.0 samples/dictionary_client.rb
madeleine-0.9.0.pre samples/dictionary_client.rb
madeleine-0.8.0 samples/dictionary_client.rb
madeleine-0.8.0.pre samples/dictionary_client.rb
madeleine-0.7.3 samples/dictionary_client.rb
madeleine-0.7.2 samples/dictionary_client.rb
madeleine-0.7.1 samples/dictionary_client.rb