Module: Chef::Knife::VaultBase

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.expand_path("../mixin/compat", __FILE__)
      require File.expand_path("../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_usageObject



40
41
42
43
# File 'lib/chef/knife/vault_base.rb', line 40

def show_usage
  super
  exit 1
end