lib/process/cloud/providers/hpcloud/hpcloud.rb in lorj_cloud-0.1.11 vs lib/process/cloud/providers/hpcloud/hpcloud.rb in lorj_cloud-0.1.12

- old
+ new

@@ -46,10 +46,11 @@ when :update update_method(crud_type) end end end + 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) @@ -204,9 +205,10 @@ required?(hParams, :server) HPCompute.delete_server(hParams[:compute_connection], hParams[:server]) end end + # rubocop: disable CyclomaticComplexity, def get(sObjectType, sUniqId, hParams) case sObjectType when :server_log required?(hParams, :server)