summaryrefslogtreecommitdiff
path: root/lib/drb/acl.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-21 04:23:43 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-21 04:23:43 +0000
commitbff692b94d74de24fe9b50a515f4bc844c3fb5be (patch)
treeb57240cf8631d9c0960437dca225c5c2036b3e63 /lib/drb/acl.rb
parent9cb4054cded4585cc8f2e0588d1cd85ecc6c7b1d (diff)
downloadruby-bff692b94d74de24fe9b50a515f4bc844c3fb5be.tar.gz
* lib/drb/acl.rb: split executable code into sample directory.
* sample/drb/acl.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/drb/acl.rb')
-rw-r--r--lib/drb/acl.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/drb/acl.rb b/lib/drb/acl.rb
index 29a378199f..8d06b25829 100644
--- a/lib/drb/acl.rb
+++ b/lib/drb/acl.rb
@@ -230,21 +230,3 @@ class ACL
end
end
-
-if __FILE__ == $0
- # example
- list = %w(deny all
- allow 192.168.1.1
- allow ::ffff:192.168.1.2
- allow 192.168.1.3
- )
-
- addr = ["AF_INET", 10, "lc630", "192.168.1.3"]
-
- acl = ACL.new
- p acl.allow_addr?(addr)
-
- acl = ACL.new(list, ACL::DENY_ALLOW)
- p acl.allow_addr?(addr)
-end
-