-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
executable file
·37 lines (29 loc) · 837 Bytes
/
Rakefile
File metadata and controls
executable file
·37 lines (29 loc) · 837 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
32
33
34
35
36
37
#!/usr/bin/env rake
#
require_relative 'config/environment' # Setup LoadPath for gems listed in the Gemfile.
require 'rspec/core/rake_task'
# Reset some known tasks
task(:default).clear
task(:test).clear
task(:environment).clear
# desc "Instantiates Application Environment."
task :environment do
require_relative 'config/boot_web'
end
# ##
# require existing tasks
# - Could use ./rakelib/*.rake vs ./lib/tasks/*.rake
# - Rake.add_rakelib 'lib/tasks' -- or anything else
#
Dir["rakelib/**/*.rake"].each do |task_resource|
begin
import task_resource
rescue LoadError => e
puts "[RakeLib] Ignoring Exception for: #{e.class} #{e.message} #{e.backtrace}"
end
end
# Set default and test to spec --prerequisites
RSpec::Core::RakeTask.new(:spec)
desc "Run all rspec tests. "
task :default => :spec
task :test => :spec