Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 28 lines (23 sloc) 0.553 kb
634d0446 »
2008-05-11 added etc and web.
1 require 'rubygems'
2 require 'net/ssh'
3
4 def main
5 Dir.chdir('/Users/psychs/git/limechat/web')
6
7 puts '* copying...'
8 system('scp -r * psychs@shell.sourceforge.net:~/htdocs')
9 puts '* copied'
10
11 begin
12 puts '* connecting'
13 session = Net::SSH.start("shell.sourceforge.net", 22, "psychs");
14 shell = session.shell.sync
15 if shell.open? then
16 puts '* connected'
17 puts '* deploying...'
18 shell.send_command("deploy.rb").stdout
19 puts '* deployed'
20 shell.exit
21 end
22 ensure
23 session.close if session
24 end
25 end
26
27 main
Something went wrong with that request. Please try again.