require ‘roozer_client’
# Connect to a roozer server. Multiple servers can be listed seperated by # semicolons. Client uses round robin until it finds a server that responds # to its requests.
rc = RoozerClient.new(url: ‘orch1:2987;http://orch2:2987’, path: ‘rootpath’)
# Create a file rc = { data: “abc” }
# List dirs rc.list
> [‘subpath’]
# Read a file rc
> { “data” => “abc” }
# List all dirs in a depth-first traversal rc = true rc.tree ‘dir1’
> [“/dir1/dir2/dir3”, “/dir1/dir2”, “/dir1”]
# Delete a file rc.delete ‘subpath/data’
# Delete all files in a directory tree rc.deltree ‘dir1’
# sets the data only if is different to what is already there rc.update(path, …data…)