diff options
author | Tim Smith <tsmith@chef.io> | 2021-01-12 16:27:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 16:27:35 -0800 |
commit | f207c829c820c082f43a1dd3b51514c379608726 (patch) | |
tree | d683421d5be83dc69c62f0234146c039317fe968 | |
parent | a1940bed0545b61a0204880e05d44de50bd05b64 (diff) | |
parent | 07b3aeb4cf3bc9903e55c836974101ca2e6586bb (diff) | |
download | chef-f207c829c820c082f43a1dd3b51514c379608726.tar.gz |
Merge pull request #10870 from chef/fix_yard_warnings
Fix yard warnings in the chef_vault dsl
-rw-r--r-- | lib/chef/dsl/chef_vault.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/dsl/chef_vault.rb b/lib/chef/dsl/chef_vault.rb index 031627c358..3411f79e41 100644 --- a/lib/chef/dsl/chef_vault.rb +++ b/lib/chef/dsl/chef_vault.rb @@ -32,8 +32,8 @@ class Chef # actually a Chef Vault item. This is controlled via # +node['chef-vault']['databag_fallback']+. # @example - # item = chef_vault_item('secrets', 'bacon') - # log 'Yeah buddy!' if item['_default']['type'] + # item = chef_vault_item('secrets', 'bacon') + # log 'Yeah buddy!' if item['_default']['type'] # @param [String] bag Name of the data bag to load from. # @param [String] id Identifier of the data bag item to load. def chef_vault_item(bag, id) @@ -51,8 +51,8 @@ class Chef # the items, so this method strips out the keys for users so that they # don't have to do it in their recipes. # @example - # ids = chef_vault('secrets') - # log 'Yeah buddy!' if ids[0] == 'bacon' + # ids = chef_vault('secrets') + # log 'Yeah buddy!' if ids[0] == 'bacon' # @param [String] bag Name of the data bag to load from. # @return [Array] def chef_vault(bag) @@ -68,8 +68,8 @@ class Chef # This allows for easy access to current environment secrets inside # of an item. # @example - # item = chef_vault_item_for_environment('secrets', 'bacon') - # log 'Yeah buddy!' if item['type'] == 'applewood_smoked' + # item = chef_vault_item_for_environment('secrets', 'bacon') + # log 'Yeah buddy!' if item['type'] == 'applewood_smoked' # @param [String] bag Name of the data bag to load from. # @param [String] id Identifier of the data bag item to load. # @return [Hash] |