deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1205813 - /deltacloud/trunk/server/lib/cimi/server.rb
Date Thu, 24 Nov 2011 13:19:04 GMT
Author: mfojtik
Date: Thu Nov 24 13:19:04 2011
New Revision: 1205813

URL: http://svn.apache.org/viewvc?rev=1205813&view=rev
Log:
CIMI: Implemented :show operation for :machine_configuration model in Rabbit

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

Modified: deltacloud/trunk/server/lib/cimi/server.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/cimi/server.rb?rev=1205813&r1=1205812&r2=1205813&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/cimi/server.rb (original)
+++ deltacloud/trunk/server/lib/cimi/server.rb Thu Nov 24 13:19:04 2011
@@ -19,7 +19,7 @@ require 'cimi/helpers/cmwgapp_helper'
 
 set :version, '0.1.0'
 
-include Deltacloud::Drivers
+include CIMI::Drivers
 set :drivers, Proc.new { driver_config }
 
 STOREROOT = File.join($top_srcdir, 'lib', 'cimi', 'data')
@@ -108,9 +108,12 @@ global_collection :machine_configuration
   end
 
   operation :show do
-    description "Show specific machine configuration."
-    with_capability :hardware_profile
-    param :id,          :string,    :required
+
+    description "The Machine Configuration entity represents the set of configuration values
"+
+      "that define the (virtual) hardware resources of a to-be-realized Machine Instance.."
+
+    param :id, :string, :required
+
     control do
       @profile =  driver.hardware_profile(credentials, params[:id])
       if @profile
@@ -127,6 +130,7 @@ global_collection :machine_configuration
         report_error(404)
       end
     end
+
   end
 end
 



Mime
View raw message