You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:23:03 UTC
svn commit: r962103 -
/incubator/deltacloud/trunk/drivers/ec2/lib/ec2_driver.rb
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()