deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject svn commit: r1207914 - in /deltacloud/trunk/server/lib/cimi: model.rb model/action.rb
Date Tue, 29 Nov 2011 15:31:39 GMT
Author: mfojtik
Date: Tue Nov 29 15:31:38 2011
New Revision: 1207914

URL: http://svn.apache.org/viewvc?rev=1207914&view=rev
Log:
CIMI: Added Action model

Added:
    deltacloud/trunk/server/lib/cimi/model/action.rb
      - copied, changed from r1207913, deltacloud/trunk/server/lib/cimi/model.rb
Modified:
    deltacloud/trunk/server/lib/cimi/model.rb

Modified: deltacloud/trunk/server/lib/cimi/model.rb
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/cimi/model.rb?rev=1207914&r1=1207913&r2=1207914&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/cimi/model.rb (original)
+++ deltacloud/trunk/server/lib/cimi/model.rb Tue Nov 29 15:31:38 2011
@@ -25,6 +25,7 @@ require 'cimi/model/base'
 require 'cimi/model/machine_template'
 require 'cimi/model/machine_image'
 require 'cimi/model/machine_configuration'
+require 'cimi/model/action'
 require 'cimi/model/machine'
 require 'cimi/model/volume'
 require 'cimi/model/machine_admin'

Copied: deltacloud/trunk/server/lib/cimi/model/action.rb (from r1207913, deltacloud/trunk/server/lib/cimi/model.rb)
URL: http://svn.apache.org/viewvc/deltacloud/trunk/server/lib/cimi/model/action.rb?p2=deltacloud/trunk/server/lib/cimi/model/action.rb&p1=deltacloud/trunk/server/lib/cimi/model.rb&r1=1207913&r2=1207914&rev=1207914&view=diff
==============================================================================
--- deltacloud/trunk/server/lib/cimi/model.rb (original)
+++ deltacloud/trunk/server/lib/cimi/model/action.rb Tue Nov 29 15:31:38 2011
@@ -12,22 +12,13 @@
 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 # License for the specific language governing permissions and limitations
 # under the License.
-#
 
-# Declare namespace for CIMI model
-#
-module CIMI
-  module Model; end
-end
+class CIMI::Model::Action < CIMI::Model::Base
+
+  text :action
 
-require 'cimi/model/schema'
-require 'cimi/model/base'
-require 'cimi/model/machine_template'
-require 'cimi/model/machine_image'
-require 'cimi/model/machine_configuration'
-require 'cimi/model/machine'
-require 'cimi/model/volume'
-require 'cimi/model/machine_admin'
-require 'cimi/model/volume_configuration'
-require 'cimi/model/volume_image'
-require 'cimi/model/volume_template'
+  def name
+    action.split('/').last.intern
+  end
+
+end



Mime
View raw message