mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	[dreamhost|dns] Zone.records: list only records matching the current zone
This commit is contained in:
		
							parent
							
								
									6dcbd01695
								
							
						
					
					
						commit
						6d2a500b76
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -26,10 +26,12 @@ module Fog
 | 
			
		|||
        #
 | 
			
		||||
        # Return a list of records for this zone
 | 
			
		||||
        #
 | 
			
		||||
        # Since Dreamhost does not support zones, this is
 | 
			
		||||
        # emulated. Iterates over all the records and discards
 | 
			
		||||
        # the ones where Record.zone != domain (the current zone domain)
 | 
			
		||||
        #
 | 
			
		||||
        def records
 | 
			
		||||
          @records ||= begin
 | 
			
		||||
            Fog::DNS::Dreamhost::Records.new( :zone => self, :service => service )
 | 
			
		||||
          end
 | 
			
		||||
          service.records.all :zone => domain
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
        #
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue