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
198 199 200 |
# File 'lib/haproxy/treetop/nodes.rb', line 198 def backends self.elements.select {|e| e.class == BackendSection} end |
#defaults ⇒ Object
186 187 188 |
# File 'lib/haproxy/treetop/nodes.rb', line 186 def defaults self.elements.select {|e| e.class == DefaultsSection} end |
#frontends ⇒ Object
194 195 196 |
# File 'lib/haproxy/treetop/nodes.rb', line 194 def frontends self.elements.select {|e| e.class == FrontendSection} end |
#global ⇒ Object
182 183 184 |
# File 'lib/haproxy/treetop/nodes.rb', line 182 def global self.elements.select {|e| e.class == GlobalSection}.first end |
#listeners ⇒ Object
190 191 192 |
# File 'lib/haproxy/treetop/nodes.rb', line 190 def listeners self.elements.select {|e| e.class == ListenSection} end |