Sha256: 46ac3a2e7ceab0934ce1d08ee36fa27601a2760c3edf23efa5cdc294012ce2fb

Contents?: true

Size: 478 Bytes

Versions: 9

Compression:

Stored size: 478 Bytes

Contents

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

Version data entries

9 entries across 8 versions & 1 rubygems

Version Path
vortex_client-0.5.8 examples/create_collection_flymake.rb
vortex_client-0.5.8 examples/create_collection.rb
vortex_client-0.5.6 create_collection.rb
vortex_client-0.5.5 create_collection.rb
vortex_client-0.5.4 create_collection.rb
vortex_client-0.5.3 examples/create_collection.rb
vortex_client-0.5.2 examples/create_collection.rb
vortex_client-0.5.1 examples/create_collection.rb
vortex_client-0.5.0 examples/create_collection.rb