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/precreated_client.rb

15 lines
299 B
Ruby
Raw Normal View History

2014-03-14 13:31:03 -07:00
def test
client = Google::APIClient.new({ :application_name => "supress", })
2014-03-14 13:31:03 -07:00
connection = Fog::Compute.new({
:provider => "Google",
:google_client => client,
2014-03-14 13:31:03 -07:00
})
begin
p connection.client.discovered_apis
p connection.servers
rescue Exception => e
p e.message
end
2014-03-14 13:31:03 -07:00
end