Sha256: 01b7f8e77c6d11d95d54d91d32b9814fb7b1819fceb989917f471052e73a29b5
Contents?: true
Size: 592 Bytes
Versions: 10
Compression:
Stored size: 592 Bytes
Contents
require 'rubygems' require 'vortex_client' include Vortex vortex = Vortex::Connection.new("https://vortex-dav.uio.no/") vortex.cd('/brukere/thomasfl/nyheter/') article = HtmlArticle.new(:title => "My new title", :introduction => "Short introduction", :body => "<p>Longer body</p>", :publishedDate => Time.now, :author => "Thomas Flemming") path = vortex.publish(article) puts "published " + path # => published https://vortex-dav.uio.no/brukere/thomasfl/nyheter/my-new-title.html
Version data entries
10 entries across 9 versions & 1 rubygems