WEBDAV Handler for Rack
RackDAV is Handler for Rack, which allows content authoring over HTTP. RackDAV brings its own file backend, but other backends are possible by subclassing RackDAV::Resource.
Just install the gem from RubyGems:
$ gem install rack_dav
If you just want to share a folder over WebDAV, you can just start a simple server with:
This will start a WEBrick server on port 3000, which you can connect to without authentication.
Using RackDAV inside a rack application is quite easy. A simple rackup script looks like this:
require 'rubygems' require 'rack_dav' use Rack::CommonLogger run RackDAV::Handler.new(:root => '/path/to/docs')