Alternate lookup: secrets.secret
(key, *args)
| 82 | |
| 83 | # Alternate lookup: secrets.secret |
| 84 | def method_missing(key, *args) |
| 85 | return super unless args.empty? |
| 86 | get(key).value |
| 87 | end |
| 88 | |
| 89 | # Wraps a Secret value in a Lazy object so that the API call to |
| 90 | # +GetSecretValue+ won't be performed until the secret is actually used. |