Skip to content

jrobertson/activeoutline_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introducing the activeoutline gem

Creating the lookup file

The following sample file was created to demonstrate the activeoutline server:

file: outline.txt

food http://kitchen.com/food
  fruit [r] http://kitchen.com/fruit
    apples http://kitchen.com/fruit?q=apples
    pears http://kitchen.com/fruit?q=pears
spoons http://kitchen.com/spoons
greeting http://a2.jamesrobertson.eu/do/r/hello

Launching the server

require 'activeoutline'

ActiveOutline.new('outline.txt', host: '127.0.0.1').start

Launching the client

require 'activeoutline_client'

ao = ActiveOutlineClient.new host: '127.0.0.1'

ao.fetch 'food/fruit' #=> "[r] http://kitchen.com/fruit" 
ao.fetch 'greeting' #=> "hello_1 2018-03-17 14:08:35 +0000" 

Notes:

  1. The default port is 60700
  2. The [r] represents a redirect which means the server won't read the contents of the location, it will simply pass the link back to the client

Resources

activeoutline myoutline outline index drb server client polyrexlinks

About

A DRb client to access the activeoutline service. Used to lookup pages or links.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages