Check the status of Vault

@return boolean
962971
public function status()
    {
        $status = $this->Vault->sys()->status()->json();
        if ($status['initialized'] !== true) {
            $this->warn('Vault is not initialized. Please run the "create" command');
            return false;
        }

        if ($this->Vault->sys()->sealed()) {
            $this->warn('Vault is not unsealed. Please run the "unseal" command');
            return true;
        }

        $this->success('Vault is initialized and unsealed');
        return true;
    }
1148030
public function isAlive(): bool
    {
        if (false === static::$testingEnabled) {
            return false !== fsockopen($this->getHost(), $this->getPort());
        }

        return static::$testingServiceIsUp;
    }
416417
public function isAuthorized()
    {
        /** @var Rbac $rbac */
        $rbac = $this->getContainer()->get('rbac');

        /** @var Auth $auth */
        $auth = $this->getContainer()->get('auth');
        foreach ($auth->getStorage()->read()['roles'] as $roleName) {
            if (true === $rbac->isGranted($roleName, 'admin.panel.view')) {
                return true;
            }
        }

        return false;
    }
252139
private function isRunning()
    {
        if (!is_resource($this->process)) {
            return false;
        }

        $status = proc_get_status($this->process);

        return $status['running'];
    }
896044
public function all()
    {
        $this->hr();
        $this->out('Ensure Vault is running');
        $this->hr();
        $this->start();
        $this->out('');

        $this->hr();
        $this->out('Ensure Vault is initialized');
        $this->hr();
        $this->create();
        $this->out('');

        $this->Vault->waitFor(['initialized' => true]);

        $this->hr();
        $this->out('Ensure Vault is unsealed');
        $this->hr();
        $this->unseal();
        $this->out('');

        $this->Vault->waitFor(['sealed' => false, 'standby' => false]);
        $this->Vault->clear();

        $this->hr();
        $this->out('Writing mount-points');
        $this->hr();
        $this->mounts();

        $this->hr();
        $this->syncVaultKey(true);
    }
831433
public function checkHas() {
        /* @var $model Record */
        $model = get_called_class();
        $model = $model::get($this->getPk());
        if ($model) {
            $this->isUpdate(true);
            return true;
        }
        return false;
    }
527173
public function check()
	{
		if($this->cipher === null)
			return false;
		if($this->compression === 0)
			return false;
		if($this->masterSeed === null)
			return false;
		if($this->transformSeed === null)
			return false;
		if($this->rounds === null)
			return false;
		if($this->encryptionIV === null)
			return false;
		if($this->startBytes === null)
			return false;
		if($this->headerHash === null)
			return false;
		if($this->randomStreamKey === null)
			return false;
		if($this->randomStream === 0)
			return false;
		return true;
	}
1034599
public function isRunning()
    {
        if (self::STATUS_STARTED !== $this->status) {
            return false;
        }

        $this->updateStatus(false);

        return $this->processInformation['running'];
    }
723226
public function getStatus()
    {
        $status = self::STATUS_OK;

        foreach ($this->getItems() as $item) {
            if ($item->getStatus() === self::STATUS_ERROR) {
                return self::STATUS_ERROR;
            }

            if ($item->getStatus() === self::STATUS_WARNING) {
                $status = self::STATUS_WARNING;
            }
        }

        return $status;
    }
1065052
public function status()
    {
        $system = app()->make(System::class)->getStatus();

        return $this->item([
            'status'  => $system['system_status'],
            'message' => $system['system_message'],
        ]);
    }
864191
public function isEmpty()
    {
        return in_array(
            $this->getStatusCode(),
            [StatusCode::HTTP_NO_CONTENT, StatusCode::HTTP_RESET_CONTENT, StatusCode::HTTP_NOT_MODIFIED]
        );
    }
844587
public function check()
    {
        $returnVar = 0;
        $output = [];
        $sshVersion = exec('ssh -V 2>&1', $output, $returnVar);

        $result = false;
        if ($returnVar === 0) {
            $result = true;
            $this->sshVersion = $sshVersion;
        }

        return $result;
    }
985308
public function create()
    {
        if ($this->status()) {
            $this->success('Vault already initialized');
            return false;
        }

        $response = $this->Vault->sys()->init([
            'secret_shares' => 5,
            'secret_threshold' => 3
        ])->json();

        $file = env('HOME') . '/.bownty_vault_keys';
        file_put_contents($file, json_encode($response, JSON_PRETTY_PRINT));

        $this->success('Vault is initialized, keys have been written to ' . $file);
        $this->success('Please run "unseal" to start working with Vault');
        return true;
    }
1046407
public function isSuccess() : bool
    {
        Assert::keyExists($this->status, "Code");

        return $this->status['Code'] === Constants::STATUS_SUCCESS;
    }
1248584
public function getStatus() {
        $rest = $this->getService( self::API_SWITCH_STATUS);
        $rest->GET();

        return $rest->getResult( models\SwitchPort\Status::class);
    }
1201179
public function isValid()
	{
		return isset($this->path)
			|| isset($this->params)
			|| isset($this->anchor)
			|| isset($this->secure)
			|| isset($this->host)
			|| isset($this->port)
			|| isset($this->user)
			|| isset($this->pass);
	}
609318
public function validateStatus() {
        if ($this->getStatus() === 'closed') {
            $this->setError('global', 'status-final', $this->getFactory()->newError([
                "status" => 400,
                "title" => "Updates No Longer Permitted",
                "detail" => "This intent's status is in a final state and you can no longer update it. If you need to update the asset information, create a new intent with the new data."
            ]));
            return false;
        } else {
            $this->clearError('global', 'status-final');
            return true;
        }
    }