File: task_loader.rb

package info (click to toggle)
ruby-knapsack 4.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,092 kB
  • sloc: ruby: 2,883; makefile: 4
file content (11 lines) | stat: -rw-r--r-- 187 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
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