module Chef::Knife::KeyListBase

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

@author Tyler Cloke

Public Class Methods

included(includer) click to toggle source
# 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