deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [3/4] git commit: DigitalOcean: Advertise :destroy operation when instance is STOPPED
Date Tue, 12 Mar 2013 17:31:20 GMT
DigitalOcean: Advertise :destroy operation when instance is STOPPED


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/3f81416a
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/3f81416a
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/3f81416a

Branch: refs/heads/master
Commit: 3f81416a5b8a273ad0a95ba8957544eb7b09f792
Parents: 16cdb08
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Mar 7 15:02:10 2013 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Mar 12 13:42:42 2013 +0100

----------------------------------------------------------------------
 .../drivers/digitalocean/digitalocean_driver.rb    |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/3f81416a/server/lib/deltacloud/drivers/digitalocean/digitalocean_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/digitalocean/digitalocean_driver.rb b/server/lib/deltacloud/drivers/digitalocean/digitalocean_driver.rb
index 64f7ec8..666f105 100644
--- a/server/lib/deltacloud/drivers/digitalocean/digitalocean_driver.rb
+++ b/server/lib/deltacloud/drivers/digitalocean/digitalocean_driver.rb
@@ -30,6 +30,7 @@ module Deltacloud
           running.to( :stopping )       .on( :stop )
           running.to( :finish )         .on( :destroy )
           stopped.to( :running )        .on( :start )
+          stopped.to( :finish)          .on( :destroy )
           stopping.to( :stopped )       .automatically
           stopped.to( :finish )         .automatically
           error.from(:running, :pending, :stopping)


Mime
View raw message