Skip to content

Commit

Permalink
make conditional deps test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Skinner committed Oct 18, 2016
1 parent aea4ae4 commit e30f168
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions samples/conditionalDeps.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@ task.query "foo" {
query = "echo foo"
}

task.query "bar" {
query = "echo bar"
}

switch "sample" {
case "true" "true" {
task.query "baz" {
query = "echo baz"
}

file.content "baz" {
destination = "baz-file.txt"
content = "{{lookup `task.query.baz.status.stdout`}}"
}

file.content "foo-output" {
destination = "foo-file.txt"
content = "{{lookup `task.query.foo.status.stdout`}}"
depends = ["task.query.bar", "file.content.baz"]
}
}
}

0 comments on commit e30f168

Please sign in to comment.