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/image_all.rb
Nat Welch 5f7886e08d [google|compute] Change projects we search for images in.
This removes Google (which has no valid v1 images) and adds rhel-cloud
and suse-cloud. It also wraps the lookups in a catch block for not-found
exceptions because not everyone has access to everything.
2014-03-17 07:46:25 -07:00

6 lines
157 B
Ruby

def test
connection = Fog::Compute.new({ :provider => "Google" })
# If this doesn't raise an exception, everything is good.
connection.images.all
end