Magestead\Command\Cache\StatusCommand::getCommand PHP Method

getCommand() protected method

protected getCommand ( Config $config ) : boolean | string
$config Magestead\Helper\Config
return boolean | string
    protected function getCommand(Config $config)
    {
        $type = $config->type;
        switch ($type) {
            case 'magento':
                return "cd /var/www/public;../bin/n98-magerun.phar cache:list";
            case 'magento2':
                return "cd /var/www/public;bin/magento cache:status";
        }
        return false;
    }