Class: JCF::CLI::Commands::Plugins

Inherits:
JCF::CLI::Command show all
Defined in:
lib/jcf/cli/commands/plugins.rb

Instance Method Summary collapse

Methods inherited from JCF::CLI::Command

inherited

Instance Method Details

#callObject



9
10
11
12
13
14
15
# File 'lib/jcf/cli/commands/plugins.rb', line 9

def call(*)
  out.puts "JCF Plugins:"
  plugin_dir = File.join(JCF.root, "jcf", "plugins", "*.rb")
  pp "plugin dir: #{plugin_dir}" if ENV["DEBUG"]
  load_plugins(plugin_dir)
  list_plugins
end