libraries/dynadns.rb
#
# Load all zone bags this node calls out
#
Load all zone bags this node calls out
Load all zone bags this node calls out
def load_zones
        return nil unless load_zones?
        @zones = []
        node['dns']['zones'].each do |zone|
          bag_name = node['dns']['bag_name'] || 'dns_zones'
          zones << data_bag_item(bag_name, Dhcp::Helpers.escape(zone)).to_hash
        end
        @zones
      end
def load_zones return nil unless load_zones? @zones = [ ] node [ 'dns' ] [ 'zones' ] . each do | zone | bag_name = node [ 'dns' ] [ 'bag_name' ] || 'dns_zones' zones << data_bag_item ( bag_name , Dhcp :: Helpers . escape ( zone ) ) . to_hash end @zones end
Load all zone bags this node calls out
Load all zone bags this node calls out