Support for either starting only the machine requested, or starting all machines

This commit is contained in:
Michael Lee
2015-08-20 10:06:41 +01:00
parent 7cb0388ed0
commit feb3eee2a0
2 changed files with 11 additions and 6 deletions
+7 -2
View File
@@ -7,7 +7,12 @@ def match(command, settings):
def get_new_command(command, settings):
cmds = command.script.split(' ')
machine = ""
machine = None
if len(cmds) >= 3:
machine = cmds[2]
return shells.and_("vagrant up " + machine, command.script)
startAllInstances = shells.and_("vagrant up", command.script)
if machine is None:
return startAllInstances
else:
return [ shells.and_("vagrant up " + machine, command.script), startAllInstances]