require 'rubygems' require 'vortex_client' include Vortex vortex = Vortex::Connection.new("https://vortex-dav.uio.no/") vortex.cd('/brukere/thomasfl/events/') # Create standard folder collection = Collection.new(:url => 'my-collection', :title => 'My articles') path = vortex.create(collection) puts "Created folder: " + path # Create a folder that lists articles collection = ArticleListingCollection.new(:url => 'my-collection', :title => 'My articles') path = vortex.create(collection) puts "Created folder: " + path # Create a folder that lists events collection = EventListingCollection.new(:title => 'My events') path = vortex.create(collection) puts "Created folder: " + path