Update valet-custom-transformers-lab.md

This commit is contained in:
j-dunham
2022-08-12 15:33:59 -04:00
committed by GitHub
parent 9a0727679c
commit e7b3e2edb3
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
with:
path: VALUE_FROM_GITLAB
```
- Now we know the final yaml we need we can write the ruby file. In this file we will call the `transform` method. This is a special method that Valet exposes, that takes the identifier we determined earlier and returns a Hash, which is basically the JSON version of the yaml we want. Valet will call that method when it encounters the identifer and pass in an `item`. The `item` is the values defined for that step in GitLab. In this case the path of the terraform report.
- Now we know the final yaml we can write the ruby file. In this file we will call the `transform` method. This is a special method that Valet exposes, that takes the identifier we determined earlier and returns a Hash, which is basically the JSON version of the yaml we want. Valet will call that method when it encounters the identifer and pass in an `item`. The `item` is the values defined for that step in GitLab. In this case the path of the terraform report.
```ruby
transform "artifacts.terraform" do |item|
{