mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
9 lines
276 B
Ruby
Executable file
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
|