module Dradis::Plugins::Thor::ClassMethods

Public Instance Methods

load_thor_tasks() click to toggle source
# File lib/dradis/plugins/thor.rb, line 14
def load_thor_tasks
  plugin_thorfiles.each do |thorfile|
    require thorfile
  end
end
plugin_thorfiles(args={}) click to toggle source
# File lib/dradis/plugins/thor.rb, line 20
def plugin_thorfiles(args={})
  if paths['dradis/thorfiles'].existent.any?
    Dir["%s/thorfile.rb" % paths['dradis/thorfiles'].existent]
  else
    []
  end
end