public
Description: All the extra stuff you could want for the Mack Framework.
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack-more.git
Finished distributed objects [#10 state:resolved]
markbates (author)
Tue Aug 05 14:29:51 -0700 2008
commit  8b87cd8ca819d68711176fc240b1a6f2546c3c31
tree    e7f53dff86a7d643707baf384f182bfacd976b73
parent  59fece7a6a3511724a08edbab4d8e4267b462468
...
2
3
4
5
6
7
8
...
2
3
4
 
5
6
7
0
@@ -2,7 +2,6 @@ module Mack
0
   module Distributed
0
     
0
     def self.const_missing(const)
0
-      puts "const: #{const}"
0
       Mack::Distributed::Utils::Rinda.read(:klass_def => "#{const}".to_sym)
0
     end
0
     
...
5
6
7
8
9
10
11
...
16
17
18
19
20
21
22
...
25
26
27
 
28
29
30
...
5
6
7
 
8
9
10
...
15
16
17
 
18
19
20
...
23
24
25
26
27
28
29
0
@@ -5,7 +5,6 @@ module Mack
0
         
0
         def self.register_or_renew(options = {})
0
           options = handle_options(options)
0
-          ::DRb.start_service
0
           begin
0
             ring_server.take([options[:space], options[:klass_def], nil, nil], options[:timeout])
0
           rescue Exception => e
0
@@ -16,7 +15,6 @@ module Mack
0
         
0
         def self.register(options = {})
0
           options = handle_options(options)
0
-          ::DRb.start_service
0
           ring_server.write([options[:space], 
0
                              options[:klass_def], 
0
                              options[:object], 
0
@@ -25,6 +23,7 @@ module Mack
0
         end
0
         
0
         def self.ring_server
0
+          ::DRb.start_service
0
           rs = ::Rinda::RingFinger.primary
0
           rs
0
         end

Comments