Ok, I hear it from many webdev now, Ruby is easy, Ruby is great, Ruby is … ect :)
I found myself bound to Ruby, because the only descent library (not over-complicated) I could find to connect to a VMWare vSphere server was RBVMomi.
This is just nice, now I want to learn Ruby but… It’s just too bad if you want a simple interface for another language/platform.
Since HTTP is a widely used protocol, I decided to implement a REST bridge between rbvmomi and any other applications I could use.
RBVMomi being in ruby, I decided to use the Sinatra framework.
So far, I just started learning it, and I’m really happy with ruby. That piece of code says it all. I got a POC done quickly and it’s working just awesome for my use :)
We start the server :
And we test ! :
Sorry for my poor Ruby skills, I’m new at it.