aboutsummaryrefslogtreecommitdiff
path: root/web/lib
diff options
context:
space:
mode:
authorPeter Wilmott <p@p8952.info>2014-12-31 15:21:50 +0000
committerPeter Wilmott <p@p8952.info>2014-12-31 15:21:50 +0000
commit1d942bcb455dfd356ea29799feea4801042f703b (patch)
tree39a8c63daa4ea2f3097fa0e40b2e77e6bf29dcec /web/lib
parentMake rubocop happy (diff)
downloadruby-tinderbox-1d942bcb455dfd356ea29799feea4801042f703b.tar.gz
ruby-tinderbox-1d942bcb455dfd356ea29799feea4801042f703b.tar.bz2
ruby-tinderbox-1d942bcb455dfd356ea29799feea4801042f703b.zip
Sleep until instance is running
Diffstat (limited to 'web/lib')
-rw-r--r--web/lib/aws.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/lib/aws.rb b/web/lib/aws.rb
index f522594..70dec04 100644
--- a/web/lib/aws.rb
+++ b/web/lib/aws.rb
@@ -26,7 +26,7 @@ def start_instance
key_pair: key_pair
)
instance.add_tag('ruby-tinderbox')
- sleep 5
+ sleep 5 while instance.status != :running
begin
Net::SSH.start(instance.ip_address, 'ec2-user', key_data: [key_pair.private_key])