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
Added ACL to mack-distributed. [#82 state:resolved]
markbates (author)
Fri Aug 08 10:26:29 -0700 2008
commit  fa882c50543bf04d86eb750e408ecde097f3a4b6
tree    a097577374897fd150cd2d44027a05327b33fba3
parent  415e29d843601f2cd5c1efac12f3881bad4cb880
...
 
 
1
2
3
...
1
2
3
4
5
0
@@ -1,3 +1,5 @@
0
+require 'drb/acl'
0
+
0
 base = File.join(File.dirname(__FILE__), "mack-distributed")
0
 
0
 config = {
...
23
24
25
 
 
 
 
26
27
28
...
23
24
25
26
27
28
29
30
31
32
0
@@ -23,6 +23,10 @@ module Mack
0
         end
0
         
0
         def self.ring_server
0
+          if app_config.mack.distributed_acl
0
+            acl = ACL.new(app_config.mack.distributed_acl)
0
+            DRb.install_acl(acl)
0
+          end
0
           ::DRb.start_service
0
           rs = ::Rinda::RingFinger.primary
0
           rs

Comments