Hot add disk on openstack

I made a automation method which can a add disk dynamically in openstack.
It is referred from cjung’s snapshot method.

and below is my code:

I’m ruby & manageiq newbie so the code would be rough,
so if you have any advice, please tell me.

Also thanks to cjung.