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

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

Overview

Generates an unused IP address

Instance Method Summary collapse

Constructor Details

#initializeUnusedIpAddress

Returns a new instance of UnusedIpAddress.



9
10
11
# File 'lib/phut/syntax/vhost_directive.rb', line 9

def initialize
  @index = 0
end

Instance Method Details

#generateObject



13
14
15
16
# File 'lib/phut/syntax/vhost_directive.rb', line 13

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