2011-02-01 09:57:29 +08:00
|
|
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
|
|
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
|
|
|
|
2013-03-21 04:30:20 +08:00
|
|
|
require File.expand_path("../config/canvas_rails3", __FILE__)
|
|
|
|
|
2013-10-04 07:17:45 +08:00
|
|
|
if CANVAS_RAILS2
|
2013-03-21 04:30:20 +08:00
|
|
|
require File.expand_path('../config/boot', __FILE__)
|
2013-10-04 07:17:45 +08:00
|
|
|
else
|
|
|
|
require File.expand_path('../config/application', __FILE__)
|
2013-03-21 04:30:20 +08:00
|
|
|
end
|
2011-02-01 09:57:29 +08:00
|
|
|
|
|
|
|
require 'rake'
|
|
|
|
require 'rake/testtask'
|
2012-04-18 04:11:15 +08:00
|
|
|
require 'rdoc/task'
|
2014-04-18 03:18:07 +08:00
|
|
|
Bundler.require(:rake_tasks)
|
2011-02-01 09:57:29 +08:00
|
|
|
|
2013-10-04 07:17:45 +08:00
|
|
|
if CANVAS_RAILS2
|
2014-03-07 00:47:05 +08:00
|
|
|
Dir["#{RAILS_ROOT}/gems/**/tasks/*.rake"].each { |ext| load ext }
|
2013-03-21 04:30:20 +08:00
|
|
|
require 'tasks/rails'
|
2013-10-04 07:17:45 +08:00
|
|
|
else
|
|
|
|
CanvasRails::Application.load_tasks
|
2013-03-21 04:30:20 +08:00
|
|
|
end
|
2014-01-15 00:25:04 +08:00
|
|
|
begin; require 'parallelized_specs/lib/parallelized_specs/tasks'; rescue LoadError; end
|