1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Whitespace cleanup of #3069.

This commit is contained in:
Nat Welch 2014-07-25 08:50:32 +00:00
parent e62c5407e1
commit ed7bc035b7
6 changed files with 34 additions and 39 deletions

View file

@ -2,12 +2,8 @@ require 'rubygems'
require 'fog'
def test
connection = Fog::Compute.new({ :provider => "google",
:google_project => "",
:google_client_email => "",
:google_key_location => ""
})
health = connection.http_health_checks.create({
connection = Fog::Compute.new({:provider => "google"})
health = connection.http_health_checks.create({
:name => 'test-checks'
})
health.wait_for { health.ready? }
@ -18,8 +14,9 @@ health = connection.http_health_checks.create({
:timeout_sec => 40,
:backends => [{'group' => 'resource_view self_link'}]
})
puts connection.backend_services.all
backend= connection.backend_services.get('backend-test')
backend.get_health
puts connection.backend_services.all
backend= connection.backend_services.get('backend-test')
backend.get_health
end
test

View file

@ -49,6 +49,7 @@ module Fog
def get_health
service.get_backend_service_health self
end
def ready?
begin
service.get_backend_service(self.name)
@ -61,7 +62,8 @@ module Fog
def reload
requires :name
return unless data = begin
return unless data =
begin
collection.get(name)
rescue Excon::Errors::SocketError
nil
@ -76,5 +78,3 @@ module Fog
end
end
end

View file

@ -23,4 +23,3 @@ module Fog
end
end
end

View file

@ -12,7 +12,6 @@ module Fog
api_method = @compute.backend_services.list
parameters = {
'project' => @project,
}
result = self.build_result(api_method, parameters)