Module: Chef::Knife::VaultBase
- Included in:
- Decrypt, EncryptCreate, EncryptDelete, EncryptRemove, EncryptRotateKeys, EncryptUpdate, VaultCreate, VaultDecrypt, VaultDelete, VaultDownload, VaultEdit, VaultIsvault, VaultItemtype, VaultList, VaultRefresh, VaultRemove, VaultRotateAllKeys, VaultRotateKeys, VaultShow, VaultUpdate
- Defined in:
- lib/chef/knife/vault_base.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(includer) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/chef/knife/vault_base.rb', line 22 def self.included(includer) includer.class_eval do deps do require "chef/search/query" require File.("../mixin/compat", __FILE__) require File.("../mixin/helper", __FILE__) include ChefVault::Mixin::KnifeCompat include ChefVault::Mixin::Helper end option :vault_mode, :short => "-M MODE", :long => "--mode MODE", :description => "Chef mode to run in default - solo", :proc => proc { |i| Chef::Config[:knife][:vault_mode] = i } end end |
Instance Method Details
#show_usage ⇒ Object
40 41 42 43 |
# File 'lib/chef/knife/vault_base.rb', line 40 def show_usage super exit 1 end |