simple.rb

Path: lib/davclient/simple.rb
Last Update: Tue Dec 06 21:46:33 +0000 2011

A minimalistic API for interacting with WebDAV servers.

If commands needs to Simple WebDAV API for use in scripts where namespacing is not necessary.

Methods

cd   find   get   ls   pwd  

Public Instance methods

Change working directory.

Examples:

   require 'davclient/simple'

   cd("https://example.webdav.org/collection/")
   content = get("index.html")
   print content

[Source]

    # File lib/davclient/simple.rb, line 21
21: def cd(args)
22:   WebDAV.cd(args)
23: end

[Source]

    # File lib/davclient/simple.rb, line 29
29: def find(*args, &block)
30:   WebDAV.find(*args, &block)
31: end

[Source]

    # File lib/davclient/simple.rb, line 41
41: def get(args)
42:   WebDAV.get(args)
43: end

[Source]

    # File lib/davclient/simple.rb, line 33
33: def ls(*args)
34:   if(args == [])
35:     LsCLI.ls([WebDAV.CWURL])
36:   else
37:     LsCLI.ls(*args)
38:   end
39: end

[Source]

    # File lib/davclient/simple.rb, line 25
25: def pwd
26:   WebDAV.CWURL
27: end

[Validate]