composer added
This commit is contained in:
parent
4b5f65b9df
commit
075380ec23
|
@ -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(":")
|
||||
|
|
Loading…
Reference in a new issue