schacon / gitready forked from qrush/gitready

Learning Git, one commit at a time.

This URL has Read+Write access

gitready / Rakefile
100644 21 lines (16 sloc) 0.425 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
desc "deploy site to gitready.com"
task :deploy do
require 'rubygems'
require 'highline/import'
require 'net/ssh'
 
username = ask("Username: ") { |q| q.echo = true }
password = ask("Password: ") { |q| q.echo = "*" }
 
commands = <<EOF
cd gitready
git pull origin master
jekyll
EOF
 
Net::SSH.start('gitready.com', username, :port => 1337, :password => password) do |ssh|
ssh.exec commands.gsub(/\n/, "; ")
end
 
end