Class Chef::Knife::SubcommandLoader
In: lib/chef/knife/core/subcommand_loader.rb
Parent: Object

Methods

Constants

CHEF_FILE_IN_GEM = /chef-[\d]+\.[\d]+\.[\d]+/
CURRENT_CHEF_GEM = /chef-#{Regexp.escape(Chef::VERSION)}/

Attributes

chef_config_dir  [R] 
env  [R] 

Public Class methods

Public Instance methods

Returns a Hash of paths to knife commands built-in to chef, or installed via gem. If rubygems is not installed, falls back to globbing the knife directory. The Hash is of the form {"relative/path" => "/absolute/path"}

Load all the sub-commands

Returns an Array of paths to knife commands located in chef_config_dir/plugins/knife/ and ~/.chef/plugins/knife/

[Validate]