forked from openedx-unsupported/cs_comments_service
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (23 loc) · 722 Bytes
/
Rakefile
File metadata and controls
31 lines (23 loc) · 722 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
require 'rubygems'
require 'bundler'
Bundler.setup
Bundler.require
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
# No default included because by default, running rspec/tests clears the database, which is bad on production.
rescue LoadError
# no rspec available
end
LOG = Logger.new(STDERR)
desc 'Load the environment'
task :environment do
# Load all of app.rb to keep rake and the app as similar as possible.
# Without this, we had run into bugs where certain overriding fixes in app.rb
# were not used from the rake tasks.
require File.dirname(__FILE__) + '/app.rb'
end
task :console => :environment do
binding.pry
end
Dir.glob('lib/tasks/*.rake').each { |r| import r }