Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Validate all hosts before starting any of them up
Browse files Browse the repository at this point in the history
  • Loading branch information
R. Tyler Croy committed Apr 23, 2012
1 parent c1fbaef commit da16d19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/blimpy/fleet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ def add(&block)
end

def start
# Make sure all our hosts are valid first!
@hosts.each do |host|
host.validate!
end

@hosts.each do |host|
@servers << host.start
end
Expand Down

0 comments on commit da16d19

Please sign in to comment.