Class: Inspec::Plugins::CLI
- Inherits:
-
Object
- Object
- Inspec::Plugins::CLI
- Defined in:
- lib/inspec/plugins/cli.rb
Overview
stores all CLI plugin, we expect those to the ‘Thor` subclasses
Class Method Summary collapse
Class Method Details
.register(klass, subcommand_name, usage, description, options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/inspec/plugins/cli.rb', line 13 def self.register(klass, subcommand_name, usage, description, = {}) registry[subcommand_name] = { klass: klass, subcommand_name: subcommand_name, usage: usage, description: description, options: , } end |
.registry ⇒ Object
9 10 11 |
# File 'lib/inspec/plugins/cli.rb', line 9 def self.registry @registry ||= {} end |