Class: HAProxy::Treetop::ConfigurationFile
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- HAProxy::Treetop::ConfigurationFile
- Defined in:
- lib/haproxy/treetop/nodes.rb
Instance Method Summary collapse
Instance Method Details
#backends ⇒ Object
207 208 209 |
# File 'lib/haproxy/treetop/nodes.rb', line 207 def backends self.elements.select {|e| e.class == BackendSection} end |
#defaults ⇒ Object
195 196 197 |
# File 'lib/haproxy/treetop/nodes.rb', line 195 def defaults self.elements.select {|e| e.class == DefaultsSection} end |
#frontends ⇒ Object
203 204 205 |
# File 'lib/haproxy/treetop/nodes.rb', line 203 def frontends self.elements.select {|e| e.class == FrontendSection} end |
#global ⇒ Object
191 192 193 |
# File 'lib/haproxy/treetop/nodes.rb', line 191 def global self.elements.select {|e| e.class == GlobalSection}.first end |
#listeners ⇒ Object
199 200 201 |
# File 'lib/haproxy/treetop/nodes.rb', line 199 def listeners self.elements.select {|e| e.class == ListenSection} end |