Skip to content

Instantly share code, notes, and snippets.

@databyte
Forked from anonymous/Rakefile
Created May 22, 2011 09:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save databyte/4cd2bbe68f98f2f0249f to your computer and use it in GitHub Desktop.
Save databyte/4cd2bbe68f98f2f0249f to your computer and use it in GitHub Desktop.
Non-broken Rake 0.9.0 RakeFile Example
# 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.
require File.expand_path('../config/application', __FILE__)
module ::YourApplicationName
class Application
include Rake::DSL
end
end
module ::RakeFileUtils
extend Rake::FileUtilsExt
end
YourApplicationName::Application.load_tasks
@jacobsimeon
Copy link

adding "require 'rake/dsl_definition'" to my rakefile worked for me.
windows 7
rails 3.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment