From b72e0a21f8877431c15b376189fbf94318a9f08f Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Wed, 20 Mar 2013 12:00:40 +0000 Subject: [PATCH] Remove old deploy script. --- deploy.rb | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 deploy.rb diff --git a/deploy.rb b/deploy.rb deleted file mode 100755 index 6ca3603..0000000 --- a/deploy.rb +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env ruby - -require 'net/ssh' - -module CV - def CV.check_dir - return File.exists? "danbarbercv" - end - - def CV.deploy - if check_dir - Net::SSH.start('vps2.danbee.co.uk', 'danbee') do |ssh| - ssh.exec("cd ~/cv; bundle install") - ssh.exec("cd ~/cv; git pull origin master") - ssh.exec("cd ~/cv; stasis") - end - else - puts "Please run this from the projects directory." - end - end -end - -CV.deploy