Method: Quick#brb_service
- Defined in:
- lib/quick.rb
#brb_service ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/quick.rb', line 10 def brb_service @brb_service ||= begin uri = File.read('#brb_uri') service = BrB::Tunnel.create nil, uri if service.error? raise "failed to connect to the Quick instance" end service end rescue Errno::ENOENT raise "not in a Quick directory" end |