Project

seaweedrb

0.01
No commit activity in last 3 years
No release in over 3 years
A Seaweed-FS Ruby Client
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

seaweedrb

a seaweed-fs ruby client

Gem Version Build Status

getting started

Run gem install seaweedrb or include it in your project's Gemfile.

require 'seaweed'
Seaweed.connect host: "localhost", port: 9333

operations

# upload a file
file = Seaweed.upload "/path/to/test.txt"

# file methods
file.id         # => "1,01766888e0"
file.pretty_url # => "http://localhost:8080/1/01766888e0/test.txt"
file.url        # => "http://localhost:8080/1,01766888e0"
file.read       # => "hello world!"
file.name       # => "test.txt"

# find a file and delete it
file = Seaweed.find "1,01766888e0"
file.delete!