You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2013/03/12 18:31:20 UTC
[3/4] git commit: DigitalOcean: Advertise :destroy operation when
instance is STOPPED
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 <mf...@redhat.com>
Authored: Thu Mar 7 15:02:10 2013 +0100
Committer: Michal fojtik <mf...@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)