summaryrefslogtreecommitdiff
path: root/lib/tasks/ssh.rake
diff options
context:
space:
mode:
authormo k <mo@mokhan.ca>2012-09-22 15:24:14 -0600
committermo k <mo@mokhan.ca>2012-09-22 15:24:14 -0600
commitac5dd436edea8a2ac833251e3e5b23ee202f8725 (patch)
tree863d96c83149dfa277d3552ad627419a116b91e4 /lib/tasks/ssh.rake
parent38a7309d59474a780f6953cb7ae4b00e9af86c66 (diff)
move stuff from rakefile into separate rake files in lib/tasks
Diffstat (limited to 'lib/tasks/ssh.rake')
-rw-r--r--lib/tasks/ssh.rake11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/tasks/ssh.rake b/lib/tasks/ssh.rake
new file mode 100644
index 00000000..8ef426dd
--- /dev/null
+++ b/lib/tasks/ssh.rake
@@ -0,0 +1,11 @@
+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