Sha256: 2f5a1a065c4e45563efb2018f7efd9c08fc194983184e44b731958a26c7e53a7
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
# Tasks provided by Merb are guarded with a rescue block as we need this file # to work prior to installation of Merb. begin 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 } require 'spec/rake/spectask' require 'merb-core/test/tasks/spectasks' rescue Exception end # Task for loading gems needed by this template. Bootstrap to get installed... namespace :template do desc 'Load missing gems to local gem repository' task :gems do if (appcfg = `which appcfg.rb`.chomp).empty? $stderr.puts '!!Error: Could not find "appcfg.rb"' exit end puts 'Load missing gems to local gem repository' `(sudo #{appcfg} gem install appengine-apis extlib merb-core) 1>&2` end end # Add your own tasks... namespace :merb do end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ulbrich-jruby-enginize-0.7.2 | templates/merb/lib/tasks/merb.rake |