-
Notifications
You must be signed in to change notification settings - Fork 33
/
Rakefile
30 lines (23 loc) · 850 Bytes
/
Rakefile
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
require 'rubygems'
require 'merb-core'
require 'merb-core/tasks/merb'
include FileUtils
# Load the basic runtime dependencies; this will include
# any plugins and therefore plugin rake tasks.
init_env = ENV['MERB_ENV'] || 'rake'
Merb.load_dependencies(:environment => init_env)
# Get Merb plugins and dependencies
Merb::Plugins.rakefiles.each { |r| require r }
# Load any app level custom rakefile extensions from lib/tasks
tasks_path = File.join(File.dirname(__FILE__), "lib", "tasks")
rake_files = Dir["#{tasks_path}/*.rake"]
rake_files.each{|rake_file| load rake_file }
desc "add folder step definitions"
task :add_folder_step_definitions do
`mkdir -p features/step_definitions`
chdir "features/step_definitions"
`ls -d ../*/steps`.split("\n").each do |path|
pp = path.split '/';
puts `ln -s #{path} #{pp[1]}_steps`
end
end