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

Co-authored-by: Ethan Dennis <[email protected]>
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 ```ruby
transform "sleep" do |item| transform "sleep" do |item|
wait_time = item[0]["value"]["value"]
{ {
"name": "Sleep for 30 seconds", "name": "Sleep for #{wait_time} seconds",
"run": "sleep 30s", "run": "sleep #{wait_time}s",
"shell": "bash" "shell": "bash"
} }
end end