class Knife::Clc::Bootstrap::SubcommandLoader

Public Instance Methods

load(params) click to toggle source
# File lib/knife-clc/bootstrap/subcommand_loader.rb, line 5
def load(params)
  klass = params.fetch(:class)
  config = params.fetch(:config)

  klass.load_deps
  command = klass.new
  command.config.merge!(config)
  command.configure_chef
  command
end