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

Version Path
fog-google-1.24.1 examples/precreated_client.rb
fog-google-1.24.0 examples/precreated_client.rb
fog-google-1.23.0 examples/precreated_client.rb
fog-google-1.22.0 examples/precreated_client.rb
fog-google-1.21.1 examples/precreated_client.rb
fog-google-1.21.0 examples/precreated_client.rb
fog-google-1.20.0 examples/precreated_client.rb
fog-google-1.19.0 examples/precreated_client.rb
fog-google-1.18.0 examples/precreated_client.rb
fog-google-1.17.0 examples/precreated_client.rb
fog-google-1.16.1 examples/precreated_client.rb
fog-google-1.16.0 examples/precreated_client.rb
fog-google-1.15.0 examples/precreated_client.rb
fog-google-1.14.0 examples/precreated_client.rb
gitlab-fog-google-1.14.0 examples/precreated_client.rb
fog-google-1.13.0 examples/precreated_client.rb
gitlab-fog-google-1.13.0 examples/precreated_client.rb
fog-google-1.12.1 examples/precreated_client.rb
fog-google-1.12.0 examples/precreated_client.rb
fog-google-1.11.0 examples/precreated_client.rb