Class: RuboCop::Cop::Chef::Effortless::DependsChefVault
- Defined in:
- lib/rubocop/cop/chef/effortless/depends_chef_vault.rb
Overview
Chef Vault is not supported in the Effortless pattern, so usage of Chef Vault must be shifted to another secrets management solution before leveraging the Effortless pattern.
Constant Summary collapse
- MSG =
'Chef Vault usage is not supported in the Effortless pattern'
- RESTRICT_ON_SEND =
[:depends].freeze
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#on_send(node) ⇒ Object
38 39 40 41 42 |
# File 'lib/rubocop/cop/chef/effortless/depends_chef_vault.rb', line 38 def on_send(node) depends?(node) do add_offense(node.loc.expression, severity: :refactor) end end |