Skip to content

Instantly share code, notes, and snippets.

@cv
Created March 4, 2011 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cv/855293 to your computer and use it in GitHub Desktop.
Save cv/855293 to your computer and use it in GitHub Desktop.
namespace :foo do
task :a do
exec "echo A"
end
task :b => [:'foo:a'] do
exec "echo B"
end
end
# $ rake foo:a
# (in /Users/cv/Dropbox/src/tmp)
# A
# cv:tmp cv$ rake foo:b
# (in /Users/cv/Dropbox/src/tmp)
# A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment