Skip to content

Instantly share code, notes, and snippets.

View gitkeeper's full-sized avatar

Alexander Baumann gitkeeper

View GitHub Profile
@gitkeeper
gitkeeper / Rakefile
Created November 8, 2011 01:11 — forked from xentek/Rakefile
Rake tasks for managing your Spork server. Check the Rakefile to bypass loading Rails to run Spork tasks quickly.
#!/usr/bin/env rake
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
# If a Spork task is called, don't load the Rails environment
# but instantly import and start the task. (Fast)
if Rake.application.top_level_tasks.first =~ /^spork/
import File.expand_path("../lib/tasks/spork.rake", __FILE__)
else
# Load the Rails environment and load all tasks. (Slow)