summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-01-12 14:42:15 -0800
committerTim Smith <tsmith84@gmail.com>2021-01-12 14:42:15 -0800
commit07b3aeb4cf3bc9903e55c836974101ca2e6586bb (patch)
tree9032bd3239d2eef7d1e22b08d1e02570175ef61b
parent6dde0d5c6147e4d982b746cd9d4c6d2886bdc8de (diff)
downloadchef-07b3aeb4cf3bc9903e55c836974101ca2e6586bb.tar.gz
Fix yard warnings in the chef_vault dslfix_yard_warnings
These get parsed by the vscode snippets repo and these were annoying to see Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/dsl/chef_vault.rb12
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]