Method: SimpleDeploy::Status#wait_for_stable

Defined in:
lib/simple_deploy/stack/status.rb

#wait_for_stable(count = 25) ⇒ Object



34
35
36
37
38
39
40
41
# File 'lib/simple_deploy/stack/status.rb', line 34

def wait_for_stable(count=25)
  1.upto(count).each do |c|
    break if stable?
    @logger.info ("#{@name} not stable (#{current}).  Sleeping #{c * c} second(s).")
    Kernel.sleep (c * c)
  end
  stable?
end