remove ray
This commit is contained in:
parent
792f6bc163
commit
20558d438a
1 changed files with 0 additions and 10 deletions
|
|
@ -31,8 +31,6 @@ public function mount()
|
||||||
$this->projectUuid = data_get($parameters, 'project_uuid');
|
$this->projectUuid = data_get($parameters, 'project_uuid');
|
||||||
$this->environmentName = data_get($parameters, 'environment_name');
|
$this->environmentName = data_get($parameters, 'environment_name');
|
||||||
|
|
||||||
ray('Mount method called');
|
|
||||||
|
|
||||||
if ($this->resource === null) {
|
if ($this->resource === null) {
|
||||||
if (isset($parameters['service_uuid'])) {
|
if (isset($parameters['service_uuid'])) {
|
||||||
$this->resource = Service::where('uuid', $parameters['service_uuid'])->first();
|
$this->resource = Service::where('uuid', $parameters['service_uuid'])->first();
|
||||||
|
|
@ -42,22 +40,16 @@ public function mount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ray('Resource:', $this->resource);
|
|
||||||
|
|
||||||
if ($this->resource === null) {
|
if ($this->resource === null) {
|
||||||
ray('Resource is null');
|
|
||||||
$this->resourceName = 'Unknown Resource';
|
$this->resourceName = 'Unknown Resource';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!method_exists($this->resource, 'type')) {
|
if (!method_exists($this->resource, 'type')) {
|
||||||
ray('Resource does not have type() method');
|
|
||||||
$this->resourceName = 'Unknown Resource';
|
$this->resourceName = 'Unknown Resource';
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ray('Resource type:', $this->resource->type());
|
|
||||||
|
|
||||||
switch ($this->resource->type()) {
|
switch ($this->resource->type()) {
|
||||||
case 'application':
|
case 'application':
|
||||||
$this->resourceName = $this->resource->name ?? 'Application';
|
$this->resourceName = $this->resource->name ?? 'Application';
|
||||||
|
|
@ -84,8 +76,6 @@ public function mount()
|
||||||
default:
|
default:
|
||||||
$this->resourceName = 'Unknown Resource';
|
$this->resourceName = 'Unknown Resource';
|
||||||
}
|
}
|
||||||
|
|
||||||
ray('Final resource name:', $this->resourceName);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delete($password)
|
public function delete($password)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue