Class: Nginx::StaticServer

Inherits:
Server
  • Object
show all
Defined in:
lib/shared_infrastructure/nginx/server.rb

Instance Attribute Summary

Attributes inherited from Server

#domain

Instance Method Summary collapse

Methods inherited from Server

#initialize, #root_directory

Constructor Details

This class inherits a constructor from Nginx::Server

Instance Method Details

#to_s(level = 0) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/shared_infrastructure/nginx/server.rb', line 23

def to_s(level = 0)
  [
    super(level),
    Lines.new(
      "root #{root_directory};",
      "index index.html index.htm;"
    ).format(level)
  ].join("\n\n")
end