rename parser functions

This commit is contained in:
Andras Bacsai
2024-08-23 20:57:22 +02:00
parent 2a9a2dd7c4
commit fe89269b4b
7 changed files with 17 additions and 17 deletions

View File

@@ -66,9 +66,9 @@ class Advanced extends Component
$this->dispatch('resetDefaultLabels', false);
}
if ($this->application->settings->is_raw_compose_deployment_enabled) {
$this->application->parseRawCompose();
$this->application->oldRawParser();
} else {
$this->application->parseCompose();
$this->application->oldParser();
}
$this->application->settings->save();
$this->dispatch('success', 'Settings saved.');

View File

@@ -132,7 +132,7 @@ class General extends Component
public function mount()
{
try {
$this->parsedServices = $this->application->parseCompose();
$this->parsedServices = $this->application->oldParser();
if (is_null($this->parsedServices) || empty($this->parsedServices)) {
$this->dispatch('error', 'Failed to parse your docker-compose file. Please check the syntax and try again.');
@@ -205,7 +205,7 @@ class General extends Component
return;
}
$this->application->parseCompose();
$this->application->oldParser();
$this->dispatch('success', 'Docker compose file loaded.');
$this->dispatch('compose_loaded');
$this->dispatch('refreshStorages');

View File

@@ -26,7 +26,7 @@ class All extends Component
$this->containerNames = $this->containerNames->merge($this->resource->databases()->pluck('name'));
} elseif ($this->resource->type() == 'application') {
if ($this->resource->build_pack === 'dockercompose') {
$parsed = $this->resource->parseCompose();
$parsed = $this->resource->oldParser();
$containers = collect(data_get($parsed, 'services'))->keys();
$this->containerNames = $containers;
} else {