Skip to content

Instantly share code, notes, and snippets.

@xarimanx
Created April 9, 2015 13:53
Show Gist options
  • Save xarimanx/1b973f93f68c14b46ce2 to your computer and use it in GitHub Desktop.
Save xarimanx/1b973f93f68c14b46ce2 to your computer and use it in GitHub Desktop.
cap rake
# cap staging rake TASK=ts:config
namespace :rake do
desc "remote rake task"
task :default do
run "cd #{current_path}; RAILS_ENV=#{rails_env} rake #{ENV['TASK']}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment