1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/google/examples/bootstrap.rb
2013-10-04 16:03:56 -07:00

9 lines
276 B
Ruby
Executable file

def test
connection = Fog::Compute.new({ :provider => "Google" })
server = connection.servers.bootstrap
server.wait_for { sshable? }
raise "Could not bootstrap sshable server." unless server.ssh("whoami")
raise "Could not delete server." unless server.destroy
end