lib/catfish/cli/provision.rb in catfish-0.0.4 vs lib/catfish/cli/provision.rb in catfish-0.0.5
- old
+ new
@@ -17,11 +17,11 @@
status = `vagrant status --machine-readable`
if status.include? 'not reachable'
abort 'ERROR DEPLOYING: One or more servers could not be connected to'
end
- provision
+ provision status
ensure
# Disconnect from all of the servers
system 'vagrant destroy -f'
@@ -34,10 +34,10 @@
def vagrant_version
vagrant_version = 'Vagrant 1.6'
fail "#{vagrant_version} or greater is a prerequisite" unless `vagrant --version`.include? vagrant_version
end
- def provision
+ def provision(status)
if options[:parallel]
machines = status.split("\n").collect do |line|
line.split(',')[1]
end
threads = []