Sha256: 25414582be1f164d8e29733bbae01f6deaecbd866b90e8b8bbf1a2da6e136886

Contents?: true

Size: 500 Bytes

Versions: 14

Compression:

Stored size: 500 Bytes

Contents

module Fog
  module Compute
    class Google
      class Mock
        def stop_server(_identity, _zone_name)
          Fog::Mock.not_implemented
        end
      end

      class Real
        def stop_server(identity, zone_name)
          api_method = @compute.instances.stop
          parameters = {
            "project" => @project,
            "zone" => zone_name,
            "instance" => identity
          }

          request(api_method, parameters)
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.5.5 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.5.4 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.5.3 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.5.2 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.5.1 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.5.0 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.4.2 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.4.1 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.4.0 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.3.2 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.3.1 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.3.0 lib/fog/compute/google/requests/stop_server.rb
fog-google-0.2.0 lib/fog/compute/google/requests/stop_server.rb