forked from refinery/refinerycms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
22 lines (18 loc) · 898 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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.
begin
# Load up the environment instead of just the boot file because we want all of the tasks available.
require File.join(File.dirname(__FILE__), 'config', 'environment')
rescue Exception
# Log the exception to the console/logfile.
puts "*** Couldn't load the application's configuration because something went wrong... ***"
puts "*** Don't worry, we'll bypass the application's configuration and just boot instead... ***"
# Load up the boot file instead because there's something wrong with the environment.
require File.join(File.dirname(__FILE__), 'config', 'boot')
end
# Require the standard stuff
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
require 'refinery/tasks/refinery'