Module: DRbQS::Server::ACLFile

Defined in:
lib/drbqs/server/acl_file.rb

Class Method Summary collapse

Class Method Details

.load(path) ⇒ Object

Create ACL object from file.

Examples:

Deny hosts except for localhost

deny all
allow localhost
allow 127.0.0.1


10
11
12
# File 'lib/drbqs/server/acl_file.rb', line 10

def self.load(path)
  ACL.new(File.read(path).split)
end