class Chef::Knife::UserKeyList

@attr_reader [String] actor the name of the client that this key is for
@author Tyler Cloke
as a service class.
Implements knife user key list using Chef::Knife::KeyList

def actor_missing_error

def actor_missing_error
  "You must specify a user name"
end

def apply_params!(params)

def apply_params!(params)
  @actor = params[0]
  if @actor.nil?
    show_usage
    ui.fatal(actor_missing_error)
    exit 1
  end
end

def initialize(argv = [])

def initialize(argv = [])
  super(argv)
  @service_object = nil
end

def list_method

def list_method
  :list_by_user
end

def run

def run
  apply_params!(@name_args)
  service_object.run
end

def service_object

def service_object
  @service_object ||= Chef::Knife::KeyList.new(@actor, list_method, ui, config)
end