Sha256: a898855f99dec30360ae88e440dc0f06a940c1295e693e81c2e644f6824887e9
Contents?: true
Size: 743 Bytes
Versions: 45
Compression:
Stored size: 743 Bytes
Contents
# All examples presume that you have a ~/.fog credentials file set up. # More info on it can be found here: http://fog.io/about/getting_started.html require "bundler" Bundler.require(:default, :development) # Uncomment this if you want to make real requests to GCE (you _will_ be billed!) # WebMock.disable! # This example shows how to work with fog using a pre-created Google API client # with specific parameters, should you want to for any reason. def test client = Google::APIClient.new(:application_name => "supress") connection = Fog::Compute.new(:provider => "Google", :google_client => client) begin p connection.client.discovered_apis p connection.servers rescue StandardError => e p e.message end end test
Version data entries
45 entries across 45 versions & 2 rubygems