Module: PuppetMetadata::Command
- Defined in:
- lib/puppet_metadata/command.rb
Overview
A collection of commands implemented in the CLI.
Class Method Summary collapse
Class Method Details
.load_commands ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/puppet_metadata/command.rb', line 8 def self.load_commands return if @loaded Dir.glob(File.join(__dir__, 'command', '*.rb')) do |path| require_relative File.join('command', File.basename(path, '.rb')) end @loaded = true end |