-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Identify the type of file and call the respective parser
Since bunny wants to keep backwards compatibility with pun, we need to keep the handling of Dockerfile-like files. Hence, we need to identofy the format of the given file between a Dockerfile and a bunnyfile. For that purpose, we check the first non-empty line of the file under @syntax and if it starts with FROM we assume a Dockerfile and call the respective function. Otherwise, we call the bunnyfile handler. Signed-off-by: Charalampos Mainas <[email protected]>
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters