Method: OpenstackController.update_method
- Defined in:
- lib/process/cloud/providers/openstack/openstack.rb
.update_method(crud_type) ⇒ Object
274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/process/cloud/providers/openstack/openstack.rb', line 274 def self.update_method(crud_type) define_method(crud_type) do |sObjectType, obj, hParams| method_name = "#{crud_type}_#{sObjectType}" if self.class.method_defined? method_name send(method_name, obj, hParams) else controller_error "'%s' is not a valid object for '%s'", sObjectType, crud_type end end end |