Skip to content

Instantly share code, notes, and snippets.

@BDQ
Created February 3, 2012 14:57
Show Gist options
  • Save BDQ/1730556 to your computer and use it in GitHub Desktop.
Save BDQ/1730556 to your computer and use it in GitHub Desktop.
def rake(cmd, options={}, &block)
command = "cd #{current_path} && bundle exec rake #{cmd}"
run(command, options, &block)
end
$ cap rake 'db:admin:create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment