1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/joyent/models/compute/networks.rb
Blake Irvin and Eric Saxby 5fc41c8dc2 Add joyent API version and network support GH-1853
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.
2013-06-02 17:28:05 +08:00

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