$crontab_lines
$crontab_lines : array<mixed,string>
The current crontab file contents.
A simple helper class to manage crontab files.
appendCronJobs(string|array<mixed,string> $jobs) : \Buoy_Crontab_Manager
Add cron jobs to the current crontab.
string|array<mixed,string> | $jobs | Cron jobs to add. |
removeCronJobs(string $job_patterns) : \Buoy_Crontab_Manager
Remove cron jobs from the current crontab.
string | $job_patterns | Regex pattern of cron jobs to remove. |
save() : \Buoy_Crontab_Manager
Saves the current crontab contents to the filesystem.
If an error occurrs during crontab installation.
removeCrontab() : \Buoy_Crontab_Manager
Deletes the crontab file from the filesystem.