mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
8bc5c768ec
This patch adds a request list_virtual_machines which is responsible for making an API connection and returning a raw "response" object from the API. Model instances of a Server (compute resource) are returned as a collection through the "all" method. The Fog framework calls all on the instance of the collection.
17 lines
292 B
Ruby
17 lines
292 B
Ruby
require 'fog/core'
|
|
|
|
module Fog
|
|
module Vsphere
|
|
|
|
extend Fog::Provider
|
|
|
|
module Errors
|
|
class ServiceError < Fog::Errors::Error; end
|
|
class SecurityError < ServiceError; end
|
|
class NotFound < ServiceError; end
|
|
end
|
|
|
|
service(:compute, 'vsphere/compute')
|
|
|
|
end
|
|
end
|