composer added

This commit is contained in:
Simon Vieille 2016-01-22 11:08:25 +01:00
parent 4b5f65b9df
commit 075380ec23

View file

@ -57,7 +57,7 @@ class GitProjectVersionning extends ProjectVersionning
if @branch == null
commands.push 'git pull origin $(git rev-parse --abbrev-ref HEAD)'
else
br = @branch.split('/')
br = @branch.split "/"
if br.length == 1
commands.push 'git checkout ' + br[0]
@ -69,7 +69,7 @@ class GitProjectVersionning extends ProjectVersionning
commands
logExec = (command, options) ->
exec = require('sync-exec');
exec = require "sync-exec"
console.log command
exec command, options
@ -118,8 +118,8 @@ cleanCommands = (commands) ->
for command in commands
if command != ""
if command.match /(sf[2-3]?|artisan):.+/
elements = command.split(":")
if command.match /(sf[2-3]?|composer):.+/
elements = command.split ":"
interpreter = elements[0]
elements = elements.splice 1
args = elements.join(":")