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:
parent
e62c5407e1
commit
ed7bc035b7
6 changed files with 34 additions and 39 deletions
|
@ -2,11 +2,7 @@ require 'rubygems'
|
|||
require 'fog'
|
||||
|
||||
def test
|
||||
connection = Fog::Compute.new({ :provider => "google",
|
||||
:google_project => "",
|
||||
:google_client_email => "",
|
||||
:google_key_location => ""
|
||||
})
|
||||
connection = Fog::Compute.new({:provider => "google"})
|
||||
health = connection.http_health_checks.create({
|
||||
:name => 'test-checks'
|
||||
})
|
||||
|
@ -22,4 +18,5 @@ puts connection.backend_services.all
|
|||
backend= connection.backend_services.get('backend-test')
|
||||
backend.get_health
|
||||
end
|
||||
|
||||
test
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -23,4 +23,3 @@ module Fog
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ module Fog
|
|||
api_method = @compute.backend_services.list
|
||||
parameters = {
|
||||
'project' => @project,
|
||||
|
||||
}
|
||||
|
||||
result = self.build_result(api_method, parameters)
|
||||
|
|
Loading…
Reference in a new issue