Module: Chef::Knife::Core::EncryptedAttributeDepends

Included in:
EncryptedAttributeCreate, EncryptedAttributeDelete, EncryptedAttributeEdit, EncryptedAttributeShow, EncryptedAttributeUpdate
Defined in:
lib/chef/knife/core/encrypted_attribute_depends.rb

Overview

Loads knife encrypted attribute dependencies.

Class Method Summary collapse

Class Method Details

.included(includer) ⇒ Object

Reopens EncryptedAttributeDepends class to define knife dependencies.

Includes the required gems to work with encrypted attributes.

Parameters:

  • includer (Class)

    includer class.



32
33
34
35
36
37
38
39
# File 'lib/chef/knife/core/encrypted_attribute_depends.rb', line 32

def self.included(includer)
  includer.class_eval do
    deps do
      require 'chef/encrypted_attribute'
      require 'chef/json_compat'
    end
  end
end