deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1207913 - /deltacloud/trunk/server/lib/cimi/helpers/cimi_helper.rb
Date Tue, 29 Nov 2011 15:31:26 GMT
Author: mfojtik
Date: Tue Nov 29 15:31:26 2011
New Revision: 1207913

URL: http://svn.apache.org/viewvc?rev=1207913&view=rev
Log:
CIMI: Added no_content helper for Machine actions

Modified:
    deltacloud/trunk/server/lib/cimi/helpers/cimi_helper.rb

Modified: deltacloud/trunk/server/lib/cimi/helpers/cimi_helper.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/cimi/helpers/cimi_helper.rb?rev=1207913&r1=1207912&r2=1207913&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/cimi/helpers/cimi_helper.rb (original)
+++ deltacloud/trunk/server/lib/cimi/helpers/cimi_helper.rb Tue Nov 29 15:31:26 2011
@@ -14,8 +14,16 @@
 # under the License.
 
 module CIMIHelper
+
+  def no_content_with_status(code=200)
+    body ''
+    status code
+  end
+
 end
 
+helpers CIMIHelper
+
 class Array
   def to_xml_cimi_collection(_self)
     model_name = first.class.xml_tag_name



Mime
View raw message