Class: HAProxy::Treetop::ConfigurationFile
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- HAProxy::Treetop::ConfigurationFile
- Defined in:
- lib/haproxy/treetop/nodes.rb
Overview
Helper class for the root config file node
Instance Method Summary collapse
Instance Method Details
#backends ⇒ Object
213 214 215 |
# File 'lib/haproxy/treetop/nodes.rb', line 213 def backends elements.select {|e| e.class == BackendSection} end |
#defaults ⇒ Object
201 202 203 |
# File 'lib/haproxy/treetop/nodes.rb', line 201 def defaults elements.select {|e| e.class == DefaultsSection} end |
#frontends ⇒ Object
209 210 211 |
# File 'lib/haproxy/treetop/nodes.rb', line 209 def frontends elements.select {|e| e.class == FrontendSection} end |
#global ⇒ Object
197 198 199 |
# File 'lib/haproxy/treetop/nodes.rb', line 197 def global elements.select {|e| e.class == GlobalSection}.first end |
#listeners ⇒ Object
205 206 207 |
# File 'lib/haproxy/treetop/nodes.rb', line 205 def listeners elements.select {|e| e.class == ListenSection} end |