Class: HAProxy::Treetop::ConfigurationFile

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/haproxy/treetop/nodes.rb

Instance Method Summary collapse

Instance Method Details

#backendsObject



198
199
200
# File 'lib/haproxy/treetop/nodes.rb', line 198

def backends
  self.elements.select {|e| e.class == BackendSection}
end

#defaultsObject



186
187
188
# File 'lib/haproxy/treetop/nodes.rb', line 186

def defaults
  self.elements.select {|e| e.class == DefaultsSection}
end

#frontendsObject



194
195
196
# File 'lib/haproxy/treetop/nodes.rb', line 194

def frontends
  self.elements.select {|e| e.class == FrontendSection}
end

#globalObject



182
183
184
# File 'lib/haproxy/treetop/nodes.rb', line 182

def global
  self.elements.select {|e| e.class == GlobalSection}.first
end

#listenersObject



190
191
192
# File 'lib/haproxy/treetop/nodes.rb', line 190

def listeners
  self.elements.select {|e| e.class == ListenSection}
end