On Aug 7, 2009, at 8:26 AM, Bryan Kearney wrote:
I have a question about actions. How/where do I define new ones? For my engine, instances can be stopped and started. How do I expose this? Can I assume that we move all methods up to the base driver to define "the api" a driver can expose?
config/routes.rb in the framework and match methods on instances_controller.rb also.
Yah, EC2 can't start/stop, only reboot.
When you create an Instance, it should have an actions array, describing what it can do right now. Instance.new( { :actions=>[:reboot] }) or Instance.new( { :actions=>[] } }
You can see it at http://github.com/bkearney/deltacloud-driver-rhevm/tree/master , although it really only runs on Windows.
Excellent. I can at least read your code, and see the strategy you're taking on things.
-Bob