This repository was archived by the owner on Apr 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Expand file tree Collapse file tree 2 files changed +3
-21
lines changed Original file line number Diff line number Diff line change 24
24
run ("curl -sO http://gordalina.github.io/cachetool/downloads/cachetool.phar " );
25
25
}
26
26
27
- run ("php cachetool.phar apc:cache:clear system {$ options }" );
27
+ run ("{{bin/ php}} cachetool.phar apc:cache:clear system {$ options }" );
28
28
})->desc ('Clearing APC system cache ' );
29
29
30
30
/**
46
46
run ("curl -sO http://gordalina.github.io/cachetool/downloads/cachetool.phar " );
47
47
}
48
48
49
- run ("php cachetool.phar opcache:reset {$ options }" );
49
+ run ("{{bin/ php}} cachetool.phar opcache:reset {$ options }" );
50
50
})->desc ('Clearing OPcode cache ' );
Original file line number Diff line number Diff line change 121
121
}
122
122
})->desc ('Updating code ' );
123
123
124
- /**
125
- * Check if command exist in bash.
126
- *
127
- * @param string $command
128
- * @return bool
129
- */
130
- function commandExistLocally ($ command )
131
- {
132
- return runLocally ("if hash $ command 2>/dev/null; then echo 'true'; fi " )->toBool ();
133
- }
134
-
135
124
/**
136
125
* Installing vendors tasks.
137
126
*/
138
127
task ('local:vendors ' , function () {
139
- if (commandExistLocally ('composer ' )) {
140
- $ composer = 'composer ' ;
141
- } else {
142
- runLocally ("cd {{local_release_path}} && curl -sS https://getcomposer.org/installer | php " );
143
- $ composer = 'php composer.phar ' ;
144
- }
145
-
146
- runLocally ("cd {{local_release_path}} && {{env_vars}} $ composer {{composer_options}} " );
128
+ runLocally ("cd {{local_release_path}} && {{env_vars}} {{bin/composer}} {{composer_options}} " );
147
129
})->desc ('Installing vendors locally ' );
148
130
149
131
/**
You can’t perform that action at this time.
0 commit comments