class CubistCommand extends Command
{
+ public function executeProcessQuiet($command)
+ {
+ return $this->executeProcess($command, '', '', false);
+ }
+
+
/**
* Run a SSH command.
*
* @param string|array $command The SSH command that needs to be run
* @param bool $beforeNotice Information for the user before the command is run
* @param bool $afterNotice Information for the user after the command is run
+ * @param bool $output
*
* @return mixed Command-line output
*/
- public function executeProcess($command, $beforeNotice = false, $afterNotice = false)
+ public function executeProcess($command, $beforeNotice = false, $afterNotice = false, $output = true)
{
- $this->echo('info', $beforeNotice ? ' ' . $beforeNotice : $command);
+ if ($output) {
+ $this->echo('info', $beforeNotice ? ' ' . $beforeNotice : $command);
+ }
if (is_string($command)) {
$process = Process::fromShellCommandline($command, null, null, null, 180);
}
- $process->run(function ($type, $buffer) {
- if (Process::ERR === $type) {
- $this->echo('comment', $buffer);
- } else {
- $this->echo('line', $buffer);
+ $process->run(function ($type, $buffer) use ($output) {
+ if ($output) {
+ if (Process::ERR === $type) {
+ $this->echo('comment', $buffer);
+ } else {
+ $this->echo('line', $buffer);
+ }
}
});
throw new ProcessFailedException($process);
}
- if ($afterNotice) {
+ if ($afterNotice && $output) {
$this->echo('info', $afterNotice);
}
}
--- /dev/null
+<?php
+
+
+namespace Cubist\Backpack\app\Magic\Models;
+
+use Illuminate\Auth\Authenticatable;
+use Illuminate\Auth\MustVerifyEmail;
+use Illuminate\Auth\Passwords\CanResetPassword;
+use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract;
+use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
+use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
+use Illuminate\Foundation\Auth\Access\Authorizable;
+
+class CubistMagicAuthenticable extends CubistMagicAbstractModel
+ implements
+ AuthenticatableContract,
+ AuthorizableContract,
+ CanResetPasswordContract
+{
+ use Authenticatable, Authorizable, CanResetPassword, MustVerifyEmail;
+}