Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
Signed-off-by: Riddhesh Sanghvi <[email protected]>
  • Loading branch information
mrrobot47 committed Aug 30, 2018
1 parent f9e1400 commit 7953962
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Shell_Command.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

use EE\Utils;
use EE\Model\Site;
use function EE\Site\Utils\auto_site_name;

/**
* Brings up a shell to run wp-cli, composer etc.
*
Expand All @@ -10,11 +14,6 @@
*
* @package ee-cli
*/

use EE\Utils;
use EE\Model\Site;
use function EE\Site\Utils\auto_site_name;

class Shell_Command extends EE_Command {

/**
Expand All @@ -26,6 +25,7 @@ class Shell_Command extends EE_Command {
* : Name of website to run shell on.
*/
public function __invoke( $args ) {

EE\Utils\delem_log( 'ee shell start' );
$args = auto_site_name( $args, 'shell', '' );
$site_name = EE\Utils\remove_trailing_slash( $args[0] );
Expand All @@ -49,6 +49,7 @@ public function __invoke( $args ) {
* @param null|array $descriptors File descriptors for proc.
*/
private function run( $cmd, $descriptors = null ) {

EE\Utils\check_proc_available( 'ee_shell' );
if ( ! $descriptors ) {
$descriptors = array( STDIN, STDOUT, STDERR );
Expand Down Expand Up @@ -81,5 +82,4 @@ private function check_shell_available( $shell_container, $site ) {
EE::error( sprintf( '%s site does not have support to launch %s shell.', $shell_container, $site->site_url ) );
}
}

}

0 comments on commit 7953962

Please sign in to comment.