summaryrefslogtreecommitdiff
path: root/lib/rinda
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-21 04:23:56 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-21 04:23:56 +0000
commit59ca946543058a68ae94405061c0c1be6275a84a (patch)
tree0af766b5ae0f69598668331c5f95d548dd8f2695 /lib/rinda
parentbff692b94d74de24fe9b50a515f4bc844c3fb5be (diff)
* lib/rinda/ring.rb: split executable code into sample directory.
* sample/rinda-ring.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rinda')
-rw-r--r--lib/rinda/ring.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb
index e36c93b..fe33420 100644
--- a/lib/rinda/ring.rb
+++ b/lib/rinda/ring.rb
@@ -478,27 +478,3 @@ module Rinda
end
end
-
-if __FILE__ == $0
- DRb.start_service
- case ARGV.shift
- when 's'
- require 'rinda/tuplespace'
- ts = Rinda::TupleSpace.new
- Rinda::RingServer.new(ts)
- $stdin.gets
- when 'w'
- finger = Rinda::RingFinger.new(nil)
- finger.lookup_ring do |ts2|
- p ts2
- ts2.write([:hello, :world])
- end
- when 'r'
- finger = Rinda::RingFinger.new(nil)
- finger.lookup_ring do |ts2|
- p ts2
- p ts2.take([nil, nil])
- end
- end
-end
-