deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 02/10] CIMI: Added no_content helper for Machine actions
Date Tue, 29 Nov 2011 13:44:54 GMT
From: Michal Fojtik <mfojtik@redhat.com>


Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 server/lib/cimi/helpers/cimi_helper.rb |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/server/lib/cimi/helpers/cimi_helper.rb b/server/lib/cimi/helpers/cimi_helper.rb
index b55ac3b..f67460b 100644
--- a/server/lib/cimi/helpers/cimi_helper.rb
+++ b/server/lib/cimi/helpers/cimi_helper.rb
@@ -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
-- 
1.7.4.4


Mime
View raw message