deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1211359 - in /deltacloud/trunk/server/lib/cimi/model: machine.rb machine_admin_collection.rb
Date Wed, 07 Dec 2011 09:57:28 GMT
Author: mfojtik
Date: Wed Dec  7 09:57:28 2011
New Revision: 1211359

URL: http://svn.apache.org/viewvc?rev=1211359&view=rev
Log:
CIMI: Added :created property to Machine entity and fixed pluralization for MachineAdmin

Modified:
    deltacloud/trunk/server/lib/cimi/model/machine.rb
    deltacloud/trunk/server/lib/cimi/model/machine_admin_collection.rb

Modified: deltacloud/trunk/server/lib/cimi/model/machine.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/cimi/model/machine.rb?rev=1211359&r1=1211358&r2=1211359&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/cimi/model/machine.rb (original)
+++ deltacloud/trunk/server/lib/cimi/model/machine.rb Wed Dec  7 09:57:28 2011
@@ -106,6 +106,7 @@ class CIMI::Model::Machine < CIMI::Model
     self.new(
       :name => instance.id,
       :description => instance.name,
+      :created => Time.now,
       :uri => context.machine_url(instance.id),
       :state => convert_instance_state(instance.state),
       :cpu => convert_instance_cpu(instance.instance_profile, context),

Modified: deltacloud/trunk/server/lib/cimi/model/machine_admin_collection.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/cimi/model/machine_admin_collection.rb?rev=1211359&r1=1211358&r2=1211359&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/cimi/model/machine_admin_collection.rb (original)
+++ deltacloud/trunk/server/lib/cimi/model/machine_admin_collection.rb Wed Dec  7 09:57:28
2011
@@ -15,9 +15,9 @@
 
 class CIMI::Model::MachineAdminCollection < CIMI::Model::Base
 
-  act_as_root_entity :machine_admins
+  act_as_root_entity :machine_admin
 
-  array :machine_admin do
+  array :machine_admins do
     scalar :href
   end
 



Mime
View raw message