def load_tasks
      return if @loaded

      # By convention, the '*_helper.rb' files are helpers and need to be loaded first. Load
      # them into the Thor::Sandbox namespace
      Dir.glob( File.join(File.dirname(__FILE__), '**', '*.rb')  ).each do |task|
        if task.match(/_helper\.rb$/)
          #logger.debug "load_thorfile helper: #{task}"
          ::Thor::Util.load_thorfile task
        end
      end

      # Now load the thor files
      Dir.glob( File.join(File.dirname(__FILE__), '**', '*.rb')  ).each do |task|
        unless task.match(/_helper\.rb$/)
          #logger.debug "load_thorfile: #{task}"
          ::Thor::Util.load_thorfile task
        end
      end

      # load user tasks
      if user_tasks_folder
        Dir.glob( File.join([user_tasks_folder, '**', '*.{rb,thor}'])  ).each { |task| ::Thor::Util.load_thorfile task if task.match(/_helper\.rb$/) }
        Dir.glob( File.join([user_tasks_folder, '**', '*.{rb,thor}'])  ).each { |task| ::Thor::Util.load_thorfile task unless task.match(/_helper\.rb$/) }
      end

      @loaded = true
    end
def load_tasks
      return if @loaded

      # By convention, the '*_helper.rb' files are helpers and need to be loaded first. Load
      # them into the Thor::Sandbox namespace
      Dir.glob( File.join(File.dirname(__FILE__), '**', '*.rb')  ).each do |task|
        if task.match(/_helper\.rb$/)
          #logger.debug "load_thorfile helper: #{task}"
          ::Thor::Util.load_thorfile task
        end
      end

      # Now load the thor files
      Dir.glob( File.join(File.dirname(__FILE__), '**', '*.rb')  ).each do |task|
        unless task.match(/_helper\.rb$/)
          #logger.debug "load_thorfile: #{task}"
          ::Thor::Util.load_thorfile task
        end
      end

      # load user tasks
      if user_tasks_folder
        Dir.glob( File.join([user_tasks_folder, '**', '*.{rb,thor}'])  ).each { |task| ::Thor::Util.load_thorfile task if task.match(/_helper\.rb$/) }
        Dir.glob( File.join([user_tasks_folder, '**', '*.{rb,thor}'])  ).each { |task| ::Thor::Util.load_thorfile task unless task.match(/_helper\.rb$/) }
      end

      @loaded = true
    end
load all the tasks in this gem plus the user's own repo_manager task folder

 NOTE: doesn't load any default tasks or non-RepoManager tasks