File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 8
8
use HnhDigital \CliHelper \FileSystemTrait ;
9
9
use LaravelZero \Framework \Commands \Command ;
10
10
11
- class ProfileCommand extends Command
11
+ class ConfigureCommand extends Command
12
12
{
13
13
use CommandInternalsTrait, FileSystemTrait, SharedTrait;
14
14
@@ -17,14 +17,14 @@ class ProfileCommand extends Command
17
17
*
18
18
* @var string
19
19
*/
20
- protected $ signature = 'profile ' ;
20
+ protected $ signature = 'configure ' ;
21
21
22
22
/**
23
23
* The description of the command.
24
24
*
25
25
* @var string
26
26
*/
27
- protected $ description = 'Configure profiles to be used to manage mysql databases ' ;
27
+ protected $ description = 'Configure profiles and connections ' ;
28
28
29
29
/**
30
30
* Profiles.
@@ -248,6 +248,7 @@ private function testRemoteProfile($profile, $name)
248
248
$ binary_exists_stream = ssh2_exec ($ connection , 'command -v "mysql-helper" >/dev/null 2>&1; echo $? ' );
249
249
stream_set_blocking ($ binary_exists_stream , true );
250
250
$ binary_exists = !(boolean ) stream_get_contents ($ binary_exists_stream );
251
+ fclose ($ binary_exists_stream );
251
252
252
253
if (!$ binary_exists ) {
253
254
$ this ->error (sprintf (' ❌ mysql-helper binary does not exist ' , $ name ));
You can’t perform that action at this time.
0 commit comments