lib/catfish/cli/provision.rb in catfish-0.0.5 vs lib/catfish/cli/provision.rb in catfish-0.0.6

- old
+ new

@@ -5,28 +5,28 @@ def initialize(options) @options = options end def run - p 'Provisioning to servers using Catfishfile.lock' + puts 'Provisioning to servers using Catfishfile.lock' vagrant_version begin # Connect to the servers. The --provider=managed is the key here. - system("vagrant up --provider=#{options[:provider]}") + system("vagrant up /managed/ --provider=#{options[:provider]}") # Confirm the connectivity - status = `vagrant status --machine-readable` + status = `vagrant status /managed/ --machine-readable` if status.include? 'not reachable' abort 'ERROR DEPLOYING: One or more servers could not be connected to' end provision status ensure # Disconnect from all of the servers - system 'vagrant destroy -f' + system 'vagrant destroy -f /managed/' end end private @@ -48,10 +48,11 @@ end end threads.each(&:join) else - system 'vagrant provision' + command = 'vagrant provision /managed/' + system command end end end end