ArturT/knapsack

View on GitHub
lib/knapsack/task_loader.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
require 'rake'

module Knapsack
  class TaskLoader
    include ::Rake::DSL

    def load_tasks
      Dir.glob("#{Knapsack.root}/lib/tasks/*.rake").each { |r| import r }
    end
  end
end