Skip to content

Instantly share code, notes, and snippets.

@thomasfl
Created January 26, 2010 13:57
Show Gist options
  • Select an option

  • Save thomasfl/286850 to your computer and use it in GitHub Desktop.

Select an option

Save thomasfl/286850 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'vortex_client'
include Vortex
vortex = Vortex::Connection.new("https://vortex-dav.uio.no/", ENV['DAVUSER'], ENV['DAVPASS'])
vortex.cd('/brukere/thomasfl/events/')
collection = ArticleListingCollection.new(:url => 'my-collection', :title => 'My articles')
path = vortex.create(collection)
puts "Created folder: " + path
collection = EventListingCollection.new(:title => 'My events')
path = vortex.create(collection)
puts "Created folder: " + path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment