Update jenkins/valet-custom-transformers-lab.md

Co-authored-by: Ethan Dennis <ethanis@github.com>
This commit is contained in:
Begona Guereca
2022-08-22 12:12:22 -07:00
committed by GitHub
co-authored by Ethan Dennis
parent b90363e8e4
commit b3a5002599
+4 -2
View File
@@ -106,9 +106,11 @@ The ruby hash can be thought of as the JSON representation of the YAML we want.
```ruby
transform "sleep" do |item|
wait_time = item[0]["value"]["value"]
{
"name": "Sleep for 30 seconds",
"run": "sleep 30s",
"name": "Sleep for #{wait_time} seconds",
"run": "sleep #{wait_time}s",
"shell": "bash"
}
end