Skip to content

Instantly share code, notes, and snippets.

@burtlo
Created May 11, 2011 18:48
Show Gist options
  • Save burtlo/967054 to your computer and use it in GitHub Desktop.
Save burtlo/967054 to your computer and use it in GitHub Desktop.
Rake with some namespacing
require 'rubygems'
[ :dev, :test, :stage, :prod ].each do |environment|
namespace environment do
desc "Deployment to #{environment}"
task :deploy do
puts "Deploying to #{environment} environment"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment