Skip to content

Commit

Permalink
Add Instance#stop for relevance_rails
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker committed Apr 28, 2012
1 parent 57f43e2 commit e0f0326
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/slushy/instance.rb
Expand Up @@ -45,6 +45,11 @@ def terminate
server.wait_for { state == "terminated" }
end

def stop
server.stop
server.wait_for { state == "stopped" }
end

def wait_for_connectivity
puts "Waiting for ssh connectivity..."
retry_block(5, [Errno::ECONNREFUSED, Timeout::Error], "Connecting to Amazon refused") do
Expand Down

0 comments on commit e0f0326

Please sign in to comment.