class Tomahawk::Generators::HTTPd

Public Class Methods

new(httpd) click to toggle source
# File lib/tomahawk/generators/httpd.rb, line 5
def initialize(httpd)
  @httpd = httpd
end

Public Instance Methods

to_s()
Alias for: to_str
to_str() click to toggle source
# File lib/tomahawk/generators/httpd.rb, line 9
def to_str
  config = ''

  @httpd.directives.each do |directive, value|
    config += generate_directive(directive, value) 
  end

  @httpd.groups.each do |group|
    config += group.to_s
  end

  config
end
Also aliased as: to_s