Method: Chef::Knife::SubcommandLoader::HashedCommandLoader#load_command
- Defined in:
- lib/chef/knife/core/hashed_command_loader.rb
#load_command(args) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/chef/knife/core/hashed_command_loader.rb', line 73 def load_command(args) paths = manifest[KEY]["plugins_paths"][subcommand_for_args(args)] if paths.nil? || paths.empty? || (! paths.is_a? Array) false else paths.each do |sc| if File.exists?(sc) Kernel.load sc else return false end end true end end |