diff options
| author | mo k <mo@mokhan.ca> | 2012-06-14 08:03:50 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-06-14 08:03:50 -0600 |
| commit | 634943c543a70d9021e806c770b8a84b40751e13 (patch) | |
| tree | 750fcacc6fa6ebf6ff4e8e254a1566d5f2e1a867 /Rakefile | |
| parent | 650648c47b7179b9d9096c3a849c86e7646f9cd5 (diff) | |
add descriptions to rake tasks
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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? |
