Skip to content

Commit 51ec2b6

Browse files
committed
cmd/rofl/init: Detect rofl-compose.yaml, if exists as well
In some projectes, we needed to separate between the generic compose.yaml files and ROFL-tailored compose files. In this case we named it rofl-compose.yaml. When running `oasis rofl init`, autodetect and use it, if it exists.
1 parent bb1a57c commit 51ec2b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/rofl/mgmt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ var (
675675

676676
// detectAndCreateComposeFile detects the existing compose.yaml-like file and returns its filename. Otherwise, creates an empty default compose.yaml.
677677
func detectOrCreateComposeFile() string {
678-
for _, filename := range []string{"docker-compose.yaml", "docker-compose.yml", "compose.yml"} {
678+
for _, filename := range []string{"rofl-compose.yaml", "rofl-compose.yml", "docker-compose.yaml", "docker-compose.yml", "compose.yml"} {
679679
if _, err := os.Stat(filename); err == nil {
680680
return filename
681681
}

0 commit comments

Comments
 (0)