Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 36 lines (27 sloc) 1.101 kB
122993d initial commit
James Deville authored
1 require 'rubygems'
2 require 'rake/rdoctask'
3
4 require 'merb-core'
5 require 'merb-core/tasks/merb'
6
7 include FileUtils
8
9 # Load the basic runtime dependencies; this will include
10 # any plugins and therefore plugin rake tasks.
11 init_env = ENV['MERB_ENV'] || 'rake'
12 Merb.load_dependencies(:environment => init_env)
13
14 # Get Merb plugins and dependencies
15 Merb::Plugins.rakefiles.each { |r| require r }
16
17 # Load any app level custom rakefile extensions from lib/tasks
18 tasks_path = File.join(File.dirname(__FILE__), "lib", "tasks")
19 rake_files = Dir["#{tasks_path}/*.rake"]
20 rake_files.each{|rake_file| load rake_file }
21
22 desc "Start runner environment"
23 task :merb_env do
24 Merb.start_environment(:environment => init_env, :adapter => 'runner')
25 end
26
27 require 'spec/rake/spectask'
28 require 'merb-core/test/tasks/spectasks'
29 desc 'Default: run spec examples'
30 task :default => 'spec'
31
32 ##############################################################################
33 # ADD YOUR CUSTOM TASKS IN /lib/tasks
34 # NAME YOUR RAKE FILES file_name.rake
35 ##############################################################################
Something went wrong with that request. Please try again.