Sha256: 09312847c4f3876dda16bdd62fb618a744847e1ad6c13e735bb0e7b8e0553a48
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
require 'fog/core/collection' require 'fog/azurerm/models/dns/zone' module Fog module DNS class AzureRM class Zones < Fog::Collection model Fog::DNS::AzureRM::Zone def all zones = [] service.list_zones.each do |z| hash = {} z.each do |k, v| hash[k] = v end zones << hash end load(zones) end def get(identity, resource_group) all.find { |f| f.name == identity && f.resource_group == resource_group } end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-azure-rm-0.0.1 | lib/fog/azurerm/models/dns/zones.rb |