Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 17 lines (15 sloc) 0.314 kb
115747e moving recipes from the ci cookbook up
pivotal authored
1 execute "turn on ssh" do
2 command "systemsetup -setremotelogin on"
bd28907 added screen_sharing, postgres, sshd
Brian Cunnie & Kevin Fitzpatrick authored
3 end
4
5 ruby_block "test to see if sshd is running" do
6 block do
7 require 'socket'
8 ssh_port = 22
9 begin
10 s = TCPSocket.open('localhost',ssh_port)
11 rescue => e
12 raise "sshd is not running: " << e
13 end
14 s.close
15 end
16 end
Something went wrong with that request. Please try again.