diff --git a/deployment.coffee b/deployment.coffee index ae80e74..f3a2321 100644 --- a/deployment.coffee +++ b/deployment.coffee @@ -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(":")