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: 'http://orch1:2987;http://orch2:2987', path: 'rootpath')
# Create a file
rc['subpath'] = { data: "abc" }
# List dirs
rc.list
=> ['subpath']
# Read a file
rc['subpath']
=> { "data" => "abc" }
# List all dirs in a depth-first traversal
rc['dir1/dir2/dir3'] = 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...})
Project
roozer_client
Ruby client for Roozer server
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
Development
Dependencies
Runtime
>= 0
Project Readme