Class: Phut::Syntax::VhostDirective::UnusedIpAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/phut/syntax.rb

Overview

Generates an unused IP address

Instance Method Summary collapse

Constructor Details

#initializeUnusedIpAddress

Returns a new instance of UnusedIpAddress.



39
40
41
# File 'lib/phut/syntax.rb', line 39

def initialize
  @index = 0
end

Instance Method Details

#generateObject



43
44
45
46
# File 'lib/phut/syntax.rb', line 43

def generate
  @index += 1
  "192.168.0.#{@index}"
end