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

Version Path
vortex_client-0.5.9 examples/publish_article.rb
vortex_client-0.5.8 examples/publish_article_flymake.rb
vortex_client-0.5.8 examples/publish_article.rb
vortex_client-0.5.6 publish_article.rb
vortex_client-0.5.5 publish_article.rb
vortex_client-0.5.4 publish_article.rb
vortex_client-0.5.3 examples/publish_article.rb
vortex_client-0.5.2 examples/publish_article.rb
vortex_client-0.5.1 examples/publish_article.rb
vortex_client-0.5.0 examples/publish_article.rb