summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-06-14 08:03:50 -0600
committermo k <mo@mokhan.ca>2012-06-14 08:03:50 -0600
commit634943c543a70d9021e806c770b8a84b40751e13 (patch)
tree750fcacc6fa6ebf6ff4e8e254a1566d5f2e1a867 /Rakefile
parent650648c47b7179b9d9096c3a849c86e7646f9cd5 (diff)
add descriptions to rake tasks
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 58e60a5b..552d98d1 100644
--- a/Rakefile
+++ b/Rakefile
@@ -6,22 +6,26 @@ require 'rake'
Cake::Application.load_tasks
+desc "install ssh keys"
task :install_keys do
sh "cp doc/keys/*.pem ~/.ssh/amazon-cakeside/"
end
namespace :ssh do
+ desc "deploy to staging server"
task :staging do
sh "ssh ubuntu@ec2-23-22-119-121.compute-1.amazonaws.com -i ~/.ssh/amazon-cakeside/stagingcakesidecom.pem"
end
end
namespace :deploy do
+ desc "deploy to staging server"
task :staging => :spec do
sh "cap staging deploy"
sh "cap staging deploy:migrations"
sh "curl http://staging.cakeside.com/ > /dev/null"
end
+ desc "deploy to production server"
task :production, :tag do |t, args|
tag_to_deploy = args.tag
if tag_to_deploy.blank?