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