Update jenkins/valet-custom-transformers-lab.md
Co-authored-by: Ethan Dennis <ethanis@github.com>
This commit is contained in:
co-authored by
Ethan Dennis
parent
b90363e8e4
commit
b3a5002599
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user