-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (24 loc) · 705 Bytes
/
Rakefile
File metadata and controls
28 lines (24 loc) · 705 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
require 'rubygems'
require 'bundler'
begin
Bundler.setup(:default, :development)
rescue Bundler::BundlerError => e
$stderr.puts e.message
$stderr.puts "Run `bundle install` to install missing gems"
exit e.status_code
end
require 'rake'
$:.unshift File.expand_path('lib')
def load_tasks(tasks)
load tasks
rescue Exception => exception
$stderr << "** loading #{tasks.sub(File.expand_path('.'),'')} failed: "
case exception
when LoadError
$stderr << "to use, install the gems it requires\n"
else
$stderr << ([exception.message] + exception.backtrace[0..2]).join("\n ") << "\n\n"
end
end
Dir["lib/tasks/*.rake"].sort.each {|t| load_tasks t}
task :default => [:spec, :cucumber]