Module: CommandLoader

Included in:
Radial::Radial
Defined in:
lib/core/loaders/command_loader.rb

Overview

Specifies the version command rubocop:disable all

Class Method Summary collapse

Class Method Details

.included(thor) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/core/loaders/command_loader.rb', line 7

def self.included(thor)
  thor.class_eval do
    PluginLoader.find_plugin_files("command").each do |plugin_file|
      require plugin_file.absolute_path
      eval "include #{plugin_file.plugin_name}"
    end
  end
end