@@ -14,16 +14,16 @@ discard block |
||
14 | 14 | set('writable_dirs', ['var']); |
15 | 15 | set('migrations_config', ''); |
16 | 16 | |
17 | -set('bin/console', function () { |
|
17 | +set('bin/console', function() { |
|
18 | 18 | return parse('{{release_path}}/bin/console'); |
19 | 19 | }); |
20 | 20 | |
21 | -set('console_options', function () { |
|
21 | +set('console_options', function() { |
|
22 | 22 | return '--no-interaction'; |
23 | 23 | }); |
24 | 24 | |
25 | 25 | desc('Migrate database'); |
26 | -task('database:migrate', function () { |
|
26 | +task('database:migrate', function() { |
|
27 | 27 | $options = '--allow-no-migration'; |
28 | 28 | if (get('migrations_config') !== '') { |
29 | 29 | $options = sprintf('%s --configuration={{release_path}}/{{migrations_config}}', $options); |
@@ -33,12 +33,12 @@ discard block |
||
33 | 33 | }); |
34 | 34 | |
35 | 35 | desc('Clear cache'); |
36 | -task('deploy:cache:clear', function () { |
|
36 | +task('deploy:cache:clear', function() { |
|
37 | 37 | run('{{bin/php}} {{bin/console}} cache:clear {{console_options}} --no-warmup'); |
38 | 38 | }); |
39 | 39 | |
40 | 40 | desc('Warm up cache'); |
41 | -task('deploy:cache:warmup', function () { |
|
41 | +task('deploy:cache:warmup', function() { |
|
42 | 42 | run('{{bin/php}} {{bin/console}} cache:warmup {{console_options}}'); |
43 | 43 | }); |
44 | 44 |
@@ -13,14 +13,14 @@ discard block |
||
13 | 13 | // Cancel deployment if there would be no change to the codebase. |
14 | 14 | // This avoids unnecessary releases if the latest commit has already been deployed. |
15 | 15 | desc('Check remote head'); |
16 | -task('deploy:check_remote', function () { |
|
16 | +task('deploy:check_remote', function() { |
|
17 | 17 | $repository = get('repository'); |
18 | 18 | if (empty($repository)) { |
19 | 19 | throw new Exception("You need to specify a repository."); |
20 | 20 | } |
21 | 21 | |
22 | 22 | // Skip if there is no current deployment to compare |
23 | - if (! test('[ -d {{deploy_path}}/current/.git ]')) { |
|
23 | + if (!test('[ -d {{deploy_path}}/current/.git ]')) { |
|
24 | 24 | return; |
25 | 25 | } |
26 | 26 | |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | $remoteLs = null; |
43 | - on(localhost(), function () use (& $remoteLs, $opt, $repository, $ref) { |
|
43 | + on(localhost(), function() use (& $remoteLs, $opt, $repository, $ref) { |
|
44 | 44 | $getRemoteRevisionCmd = sprintf("%s ls-remote $opt $repository $ref", get('bin/git')); |
45 | 45 | $remoteLs = run($getRemoteRevisionCmd); |
46 | 46 | }); |