Driving Groupwise with ruby - win32ole

D

Dave Burt

Brian said:
Anyone have examples of driving groupwise with ruby ???

If you have an API reference, or examples in VB, they're easily translatable
into Ruby.

The API reference is available here:
http://developer.novell.com/ndk/gwobjapi.htm

And a comparison of some sample code is below:

VB:
Dim objGroupWise As Object
objGroupWise = CreateObject("NovellGroupWareSession")
Dim objAccount As AccountSet
objAccount = objGroupWise.Login(txtUserID, txtCommandLine)
Dim strPathToHost As String
strPathToHost = objAccount.PathToHost
Dim objABook As Object
For Each objABook In objAccount.AddressBooks
MsgBox objABook.Name
Next

Ruby:
groupwise = WIN32OLE.new("NovellGroupWareSession")
account = groupwise.Login(user_id, command_line)
path_to_host = account.PathToHost
account.AddressBooks.each do |address_book|
puts address_book.name
end

Cheers,
Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top