oops... looks like I forgot to get rid of the comments in the ec2 driver from Michal (pasted from irc) about the features stuff (sorry michal!)
+#(13:15:54) mfojtik_: i'll write a notes about features here, because it will look messy on channel ;-) +#(13:16:41) mfojtik_: so first of all you need to define a new feature in "lib/deltacloud/base_driver/features.rb" +#(13:16:55) mfojtik_: fir example: +#(13:16:56) mfojtik_: declare_feature :instances, :authentication_password do +#(13:16:56) mfojtik_: operation :create do +#(13:16:56) mfojtik_: param :password, :string, :optional +#(13:16:56) mfojtik_: end +#(13:16:58) mfojtik_: end +#(13:17:32) mfojtik_: so now, this feature is accessible to all drivers +#(13:17:47) mfojtik_: then you open ec2_driver and declare that feature here: +#(13:17:49) mfojtik_: feature :instances, :authentication_key +#(13:18:39) mfojtik_: that's all, now this feature will be advertised in /api +#(13:18:46) marios: great... thats very cool +#(13:18:56) mfojtik_: then next, if you want add a new fields into Instance class +#(13:19:06) mfojtik_: you can do this in driver: +#(13:19:14) mfojtik_: class Instance attr_accessor :keyname attr_accessor :authn_error +#(13:19:16) mfojtik_: err. +#(13:19:19) mfojtik_: again: +#(13:19:21) mfojtik_: class Instance +#(13:19:29) mfojtik_: attr_accessor :security_group +#(13:19:30) mfojtik_: end