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

Adding support for listing networks in the Joyent Cloud. :joyent_version was defined in a way that it would always fall back to the default '~6.5'. Creating servers with a particular network requires setting :joyent_version to '~7.0' or greater.
15 lines
273 B
Ruby
15 lines
273 B
Ruby
require 'fog/joyent/models/compute/network'
|
|
module Fog
|
|
module Compute
|
|
class Joyent
|
|
class Networks < Fog::Collection
|
|
|
|
model Fog::Compute::Joyent::Network
|
|
|
|
def all
|
|
load(service.list_networks.body)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|