Method: Moonshot::CommandLine#load_plugins

Defined in:
lib/moonshot/command_line.rb

#load_plugins(moonfile_dir) ⇒ Object



73
74
75
76
77
78
# File 'lib/moonshot/command_line.rb', line 73

def load_plugins(moonfile_dir)
  plugins_path = File.join(moonfile_dir, 'moonshot', 'plugins', '**', '*.rb')
  Dir.glob(plugins_path).each do |file|
    load(file)
  end
end