incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lut...@apache.org
Subject svn commit: r962103 - /incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb
Date Thu, 08 Jul 2010 23:23:03 GMT
Author: lutter
Date: Thu Jul  8 23:23:02 2010
New Revision: 962103

URL: http://svn.apache.org/viewvc?rev=962103&view=rev
Log:
Adding begin/end to FSM.

Modified:
    incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb

Modified: incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb?rev=962103&r1=962102&r2=962103&view=diff
==============================================================================
--- incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb (original)
+++ incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb Thu Jul  8 23:23:02 2010
@@ -41,15 +41,23 @@ class Ec2Driver < DeltaCloud::BaseDriver
   ]
 
   INSTANCE_STATES = [
+    [ :begin, { 
+        :pending=>:_auto_,
+    } ],
     [ :pending, { 
-        :terminated=>:stop, 
-        :running=>:_auto_ } ],
+        :running=>:_auto_,
+        :stopped=>:stop, 
+    } ],
     [ :running, { 
         :running=>:reboot, 
-        :terminated=>:stop } ],
+        :shutting_down=>:stop,
+    } ],
     [ :shutting_down, { 
-        :terminated=>:_auto_ } ],
-    [ :terminated, {} ],
+        :stopped=>:_auto_,
+    } ],
+    [ :stopped, {
+        :end=>:_auto_,
+    } ],
   ]
 
   def instance_states()



Mime
View raw message