Method: Inspec::PluginCtl#load

Defined in:
lib/inspec/plugin/v1/plugins.rb

#load(name) ⇒ Object



53
54
55
56
57
58
59
60
# File 'lib/inspec/plugin/v1/plugins.rb', line 53

def load(name)
  path = @registry[name]
  if path.nil?
    raise "Couldn't find plugin #{name}. Searching in #{@home}"
  end
  # puts "Loading plugin #{name} from #{path}"
  require path
end