X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FCommands%2Fgenerate%2FGenerators%2FDrush%2FDrushAliasFile.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FCommands%2Fgenerate%2FGenerators%2FDrush%2FDrushAliasFile.php;h=f6b30a58e56c89ab2280bdf2f944fd6ce715cc38;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/src/Commands/generate/Generators/Drush/DrushAliasFile.php b/vendor/drush/drush/src/Commands/generate/Generators/Drush/DrushAliasFile.php new file mode 100644 index 000000000..f6b30a58e --- /dev/null +++ b/vendor/drush/drush/src/Commands/generate/Generators/Drush/DrushAliasFile.php @@ -0,0 +1,42 @@ +getRoot()); + $questions['uri'] = new Question('Drupal uri', Drush::bootstrapManager()->getUri()); + $questions['host'] = new Question('Remote host'); + $vars = $this->collectVars($input, $output, $questions); + + if ($vars['host']) { + $remote_questions['user'] = new Question('Remote user', Drush::config()->user()); + $this->collectVars($input, $output, $remote_questions); + } + + $this->addFile() + ->path('../drush/{prefix}.site.yml') + ->template('drush-alias-file.twig'); + } +}