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

Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
25 lines
575 B
Ruby
25 lines
575 B
Ruby
module Fog
|
|
module Compute
|
|
class Google
|
|
class Mock
|
|
def reset_server(identity, zone)
|
|
Fog::Mock.not_implemented
|
|
end
|
|
end
|
|
|
|
class Real
|
|
def reset_server(identity, zone)
|
|
api_method = @compute.instances.reset
|
|
parameters = {
|
|
'project' => @project,
|
|
'instance' => identity,
|
|
'zone' => zone.split('/')[-1],
|
|
}
|
|
|
|
result = self.build_result(api_method, parameters)
|
|
response = self.build_response(result)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|