Sha256: 20452577fba173184c2b49094dc3c4e6e6c29a189413a09c4db60d1ed43fe29a
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
require 'rubygems' require 'vortex_client' # Hides documents for visitors by setting the documents unpublish-date to current time and date. # # Find all files recursively under '/people' with name 'index.html', and set "unpublished-date" to now. @vortex = Vortex::Connection.new("https://nyweb2-dav.uio.no/", :use_osx_keychain => true) @vortex.find('/people/', :recursive => true, :filename=>/\.html$/) do |item| item.proppatch('<v:unpublish-date xmlns:v="vrtx">'+Time.now.httpdate.to_s+'</v:unpublish-date>') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vortex_client-0.7.0 | examples/unpublish.rb |