Commit ffb89af 1 parent e6f2fd7 commit ffb89af Copy full SHA for ffb89af
File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 3
3
namespace Acquia \Blt \Robo \Commands \Blt ;
4
4
5
5
use Acquia \Blt \Robo \BltTasks ;
6
+ use Robo \Contract \VerbosityThresholdInterface ;
6
7
use Symfony \Component \Yaml \Yaml ;
7
8
8
9
/**
@@ -17,6 +18,11 @@ class DoctorCommand extends BltTasks {
17
18
*/
18
19
public function doctor () {
19
20
21
+ $ this ->taskDrush ()
22
+ ->drush ('cc drush ' )
23
+ ->setVerbosityThreshold (VerbosityThresholdInterface::VERBOSITY_VERBOSE )
24
+ ->run ();
25
+
20
26
// Attempt to run BLT doctor inside of a VM.
21
27
if ($ this ->getInspector ()->isDrupalVmLocallyInitialized ()
22
28
&& $ this ->getInspector ()->isDrupalVmBooted ()
Original file line number Diff line number Diff line change @@ -238,8 +238,11 @@ public function isDrupalVmLocallyInitialized() {
238
238
// rather than self, then Drupal VM is being used locally.
239
239
$ drush_local_alias = $ this ->getConfigValue ('drush.aliases.local ' );
240
240
$ expected_vm_alias = $ this ->getConfigValue ('project.machine_name ' ) . '.local ' ;
241
+ $ initialized = ($ drush_local_alias == $ expected_vm_alias ) && file_exists ($ this ->getConfigValue ('repo.root ' ) . '/box/config.yml ' );
242
+ $ statement = $ initialized ? "is " : "is not " ;
243
+ $ this ->logger ->debug ("Drupal VM $ statement initialized. " );
241
244
242
- return $ drush_local_alias == $ expected_vm_alias && file_exists ( $ this -> getConfigValue ( ' repo.root ' ) . ' /box/config.yml ' ) ;
245
+ return $ initialized ;
243
246
}
244
247
245
248
/**
@@ -260,7 +263,11 @@ public function isDrupalVmBooted() {
260
263
->run ();
261
264
$ output = $ result ->getOutputData ();
262
265
263
- return strstr ($ output , "running " );
266
+ $ booted = strstr ($ output , "running " );
267
+ $ statement = $ booted ? "is " : "is not " ;
268
+ $ this ->logger ->debug ("Drupal VM $ statement booted. " );
269
+
270
+ return $ booted ;
264
271
}
265
272
266
273
/**
You can’t perform that action at this time.
0 commit comments