Skip to content
This repository has been archived by the owner on Jan 26, 2025. It is now read-only.

Fix command #20

Merged
merged 8 commits into from
Jun 9, 2024
Merged

Fix command #20

merged 8 commits into from
Jun 9, 2024

Conversation

thejmitchener
Copy link
Member

@thejmitchener thejmitchener commented Jun 9, 2024

Addresses a critical issue in the InstallWorkflowCommand.php file. The source path for the workflow template file is adjusted to be relative to the package's base directory, ensuring the correct file is accessed during the command execution.

Additionally, a check has been added to verify the existence of the source file before proceeding with the file operations. If the source file does not exist, an error message is displayed, and the command execution is halted with an exit code of 1 to prevent further issues.

Furthermore, the logic for creating directories has been enhanced to handle the case where the destination directory does not exist. If the directory creation fails, an error message is logged to inform the user about the issue.

Overall, these changes improve the robustness and reliability of the InstallWorkflowCommand, ensuring that the workflow template file is correctly accessed and copied while handling edge cases gracefully.

thejmitchener and others added 8 commits June 9, 2024 18:54
…nstallation of Fuelviews packages and running their install commands. The command copies a workflow file from a stub to the desired destination, creating any necessary directories along the way.
…lass. The reasoning behind this change is to add a new command to the package for installing a workflow.
…descriptive command name. Added new files CpanelAutoDeploy.php and CpanelAutoDeploy facade to the codebase for implementing Cpanel auto-deployment functionality.
…tive command signature, adjust the source path to be relative to the package's base directory, and add error handling for file existence and directory creation.
@thejmitchener thejmitchener merged commit c68e551 into main Jun 9, 2024
@thejmitchener thejmitchener deleted the fix-command branch June 9, 2024 23:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant