Module: Chef::Knife::KeyListBase

Included in:
ClientKeyList, UserKeyList
Defined in:
lib/chef/knife/key_list_base.rb

Overview

Extendable module that class_eval's common options into UserKeyList and ClientKeyList

Class Method Summary collapse

Class Method Details

.included(includer) ⇒ Object


25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/chef/knife/key_list_base.rb', line 25

def self.included(includer)
  includer.class_eval do
    option :with_details,
           :short => "-w",
           :long => "--with-details",
           :description => "Show corresponding URIs and whether the key has expired or not."

    option :only_expired,
           :short => "-e",
           :long => "--only-expired",
           :description => "Only show expired keys."

    option :only_non_expired,
           :short => "-n",
           :long => "--only-non-expired",
           :description => "Only show non-expired keys."
  end
end