mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	Standardise empty lines throughout codebase
Done with `rubocop --auto-correct --only EmptyLineBetweenDefs,EmptyLines,EmptyLinesAroundBody`
This commit is contained in:
		
							parent
							
								
									2e4fb619df
								
							
						
					
					
						commit
						2e0b7e545a
					
				
					 3819 changed files with 21 additions and 10695 deletions
				
			
		| 
						 | 
				
			
			@ -3,9 +3,7 @@ require 'fog/core/model'
 | 
			
		|||
module Fog
 | 
			
		||||
  module DNS
 | 
			
		||||
    class Dreamhost
 | 
			
		||||
 | 
			
		||||
      class Record < Fog::Model
 | 
			
		||||
 | 
			
		||||
        identity  :name, :aliases => 'record'
 | 
			
		||||
 | 
			
		||||
        attribute :value
 | 
			
		||||
| 
						 | 
				
			
			@ -27,9 +25,7 @@ module Fog
 | 
			
		|||
          merge_attributes(data)
 | 
			
		||||
          true
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,9 +4,7 @@ require 'fog/dreamhost/models/dns/record'
 | 
			
		|||
module Fog
 | 
			
		||||
  module DNS
 | 
			
		||||
    class Dreamhost
 | 
			
		||||
 | 
			
		||||
      class Records < Fog::Collection
 | 
			
		||||
 | 
			
		||||
        model Fog::DNS::Dreamhost::Record
 | 
			
		||||
 | 
			
		||||
        def all(filter = {})
 | 
			
		||||
| 
						 | 
				
			
			@ -25,14 +23,12 @@ module Fog
 | 
			
		|||
        rescue Excon::Errors::NotFound
 | 
			
		||||
          nil
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
      def new(attributes = {})
 | 
			
		||||
        requires :zone
 | 
			
		||||
        super({ :zone => zone }.merge!(attributes))
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,6 @@ require 'fog/dreamhost/models/dns/records'
 | 
			
		|||
module Fog
 | 
			
		||||
  module DNS
 | 
			
		||||
    class Dreamhost
 | 
			
		||||
 | 
			
		||||
      #
 | 
			
		||||
      # Dreamhost API has no concept of 'Zone', but we
 | 
			
		||||
      # can emulate it.
 | 
			
		||||
| 
						 | 
				
			
			@ -12,7 +11,6 @@ module Fog
 | 
			
		|||
      # http://wiki.dreamhost.com/API/Dns_commands
 | 
			
		||||
      #
 | 
			
		||||
      class Zone < Fog::Model
 | 
			
		||||
 | 
			
		||||
        identity :id
 | 
			
		||||
        attribute :domain,     :aliases => 'name'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -51,9 +49,7 @@ module Fog
 | 
			
		|||
        def save
 | 
			
		||||
          raise NotImplementedError.new
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,6 @@ require 'fog/dreamhost/models/dns/zone'
 | 
			
		|||
module Fog
 | 
			
		||||
  module DNS
 | 
			
		||||
    class Dreamhost
 | 
			
		||||
 | 
			
		||||
      #
 | 
			
		||||
      # Dreamhost API has no concept of 'Zone', but we
 | 
			
		||||
      # can emulate it.
 | 
			
		||||
| 
						 | 
				
			
			@ -12,7 +11,6 @@ module Fog
 | 
			
		|||
      # http://wiki.dreamhost.com/API/Dns_commands
 | 
			
		||||
      #
 | 
			
		||||
      class Zones < Fog::Collection
 | 
			
		||||
 | 
			
		||||
        model Fog::DNS::Dreamhost::Zone
 | 
			
		||||
 | 
			
		||||
        def all
 | 
			
		||||
| 
						 | 
				
			
			@ -33,9 +31,7 @@ module Fog
 | 
			
		|||
        rescue Excon::Errors::NotFound
 | 
			
		||||
          nil
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
      end
 | 
			
		||||
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue