Method: Chef::SecretFetcher::Example#do_fetch
- Defined in:
- lib/chef/secret_fetcher/example.rb
#do_fetch(identifier, version) ⇒ Object
39 40 41 42 43 |
# File 'lib/chef/secret_fetcher/example.rb', line 39 def do_fetch(identifier, version) raise Chef::Exceptions::Secret::FetchFailed.new("Secret #{identifier}) not found.") unless config.key?(identifier) config[identifier] end |