Sha256: 1fb31c7b110cc08966081739e31926ae992da9d662a9bc8acf2c25d40bbead53

Contents?: true

Size: 451 Bytes

Versions: 7

Compression:

Stored size: 451 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def list_instance_groups(zone)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def list_instance_groups(zone)
          api_method = @compute.instance_groups.list
          parameters = {
            'project' => @project,
            'zone' => zone
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

7 entries across 5 versions & 2 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/lib/fog/google/requests/compute/list_instance_groups.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/lib/fog/google/requests/compute/list_instance_groups.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/lib/fog/google/requests/compute/list_instance_groups.rb
fog-google-0.1.3 lib/fog/google/requests/compute/list_instance_groups.rb
fog-google-0.1.2 lib/fog/google/requests/compute/list_instance_groups.rb
fog-google-0.1.1 lib/fog/google/requests/compute/list_instance_groups.rb
fog-google-0.1.0 lib/fog/google/requests/compute/list_instance_groups.rb